Skip to content

Commit 786b02f

Browse files
committed
explicitly pass version to cmake configure
1 parent b46f9be commit 786b02f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Configure CMake
3636
shell: bash
3737
working-directory: ${{github.workspace}}/build
38-
run: cmake $GITHUB_WORKSPACE -G "Xcode" -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
38+
run: cmake $GITHUB_WORKSPACE -G "Xcode" -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DVERSION=$VERSION
3939

4040
- name: Build
4141
working-directory: ${{github.workspace}}/build
@@ -115,7 +115,7 @@ jobs:
115115
cmake --version
116116
117117
- name: Configure
118-
run: cmake -G "Visual Studio 17 2022" -DBUILD_STANDALONE=OFF -DCMAKE_BUILD_TYPE=$env:BUILD_TYPE -S . -B ./build
118+
run: cmake -G "Visual Studio 17 2022" -DBUILD_STANDALONE=OFF -DCMAKE_BUILD_TYPE=$env:BUILD_TYPE -DVERSION=$env:VERSION -S . -B ./build
119119

120120
- name: Build
121121
run: cmake --build ./build --config $env:BUILD_TYPE
@@ -151,7 +151,7 @@ jobs:
151151
sudo apt-get install libx11-dev libfreetype-dev libfontconfig1-dev libasound2-dev libxrandr-dev libxinerama-dev libxcursor-dev
152152
153153
- name: Configure
154-
run: cmake -G "Unix Makefiles" -DBUILD_STANDALONE=OFF -DCMAKE_BUILD_TYPE=$BUILD_TYPE -S . -B ./build
154+
run: cmake -G "Unix Makefiles" -DBUILD_STANDALONE=OFF -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DVERSION=$VERSION -S . -B ./build
155155

156156
- name: Build
157157
run: cmake --build ./build --config $BUILD_TYPE

0 commit comments

Comments
 (0)