1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-02-15 02:11:38 +00:00

Set RELEASE=ON only when it's a release

This commit is contained in:
Brenden Matthews 2024-04-25 14:39:31 -04:00
parent e93819b2ea
commit e686a5f991
2 changed files with 3 additions and 1 deletions

View File

@ -103,6 +103,8 @@ jobs:
echo "CXX=clang++-${CLANG_VERSION}" | tee -a $GITHUB_ENV
- name: Build AppImage
run: ./appimage/build.sh
env:
RELEASE: "${{ startsWith(github.ref, 'refs/tags/') && 'ON' || 'OFF' }}"
- run: ./conky-x86_64.AppImage --version # print version
- run: mv conky-x86_64.AppImage conky-${{ matrix.os }}-${{ matrix.arch }}-${{ env.GIT_VERSION }}.AppImage
- run: mv conky-x86_64.AppImage.sha256 conky-${{ matrix.os }}-${{ matrix.arch }}-${{ env.GIT_VERSION }}.AppImage.sha256

View File

@ -39,7 +39,7 @@ pushd "$BUILD_DIR"
# we need to explicitly set the install prefix, as CMake's default is /usr/local for some reason...
cmake -G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DRELEASE=ON \
-DRELEASE=$RELEASE \
-DBUILD_AUDACIOUS=ON \
-DBUILD_DOCS=ON \
-DBUILD_HTTP=ON \