Skip to content

Commit

Permalink
Name artifacts according to OS and arch
Browse files Browse the repository at this point in the history
  • Loading branch information
lolleko committed Jul 1, 2020
1 parent ce041dc commit 8282292
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,22 @@ jobs:
if: matrix.os == 'macos-latest'
- run: echo "::set-env name=VCPKG_DEFAULT_TRIPLET::x64-windows"
if: matrix.os == 'windows-latest'
- run: echo "::set-env name=VCPKG_DEFAULT_TRIPLET::x64-linux"
if: matrix.os == 'ubuntu-latest'
- run: echo "::set-env name=VCPKG_DEFAULT_TRIPLET::x64-osx"
if: matrix.os == 'macos-latest'
- run: vcpkg install "@vcpkg_response_file.txt"
if: steps.vcpkg-installed-cache.outputs.cache-hit != 'true' || steps.vcpkg-packages-cache.outputs.cache-hit != 'true'
- run: cmake -Bbuild -DCMAKE_BUILD_TYPE=Release
- run: cmake --build build
- name: Package
if: startsWith(github.ref, 'refs/tags')
run: cmake --build build --target package
- run: mv build/voxelscape.zip build/voxelscape-${{ env.VCPKG_DEFAULT_TRIPLET }}.zip
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: build/voxelscape.zip
files: build/voxelscape-${{ env.VCPKG_DEFAULT_TRIPLET }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8282292

Please sign in to comment.