Skip to content

Commit 2ff8d3e

Browse files
committed
Use release config for packaging
1 parent 4c1aa0e commit 2ff8d3e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,15 @@ jobs:
4545
env:
4646
VCPKG_DEFAULT_TRIPLET: ${{ env.VCPKG_DEFAULT_TRIPLET }}
4747
- run: cmake -DCMAKE_BUILD_TYPE=Release -Bbuild
48-
if: matrix.os != 'windows-latest'
49-
- run: cmake --config Release -Bbuild
48+
- run: cmake --build build --config Release
5049
if: matrix.os == 'windows-latest'
50+
- name: Package
51+
if: startsWith(github.ref, 'refs/tags') && matrix.os == 'windows-latest'
52+
run: cmake --build build --target package --config Release
5153
- run: cmake --build build
54+
if: matrix.os != 'windows-latest'
5255
- name: Package
53-
if: startsWith(github.ref, 'refs/tags')
56+
if: startsWith(github.ref, 'refs/tags') && matrix.os != 'windows-latest'
5457
run: cmake --build build --target package
5558
- run: mv build/voxelscape.zip build/voxelscape-${{ env.VCPKG_DEFAULT_TRIPLET }}.zip
5659
if: startsWith(github.ref, 'refs/tags')

0 commit comments

Comments
 (0)