Skip to content

Commit

Permalink
Fix release packages
Browse files Browse the repository at this point in the history
The archives were overwriting each other because they have the same
name. Fix that by giving them a OS-specific name. Also better for
users downloading the package - they can choose the one for their
system.
  • Loading branch information
violinyanev committed Dec 15, 2022
1 parent 0a8160d commit 14cfbac
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
-Dramses-sdk_ENABLE_WAYLAND_IVI=OFF
cmake --build . --target package --config $BUILD_TYPE
find . -name '*tar.gz' -exec bash -c 'mv $0 ramses-linux.tar.gz' {} \;
if: ${{ matrix.os == 'ubuntu-20.04' }}

- name: Build and package (Windows)
Expand All @@ -64,20 +65,22 @@ jobs:
-Dramses-sdk_ENABLE_WAYLAND_IVI=OFF
cmake --build . --target package --config $BUILD_TYPE
find . -name '*tar.gz' -exec bash -c 'mv $0 ramses-windows.tar.gz' {} \;
if: ${{ matrix.os == 'windows-2019' }}

- name: Publish release
uses: softprops/[email protected]
with:
fail_on_unmatched_files: true
files: |
${{runner.workspace}}/build/ramses-sdk*.tar.gz
${{runner.workspace}}/build/ramses-windows.tar.gz
if: ${{ matrix.os == 'windows-2019' }}

- name: Publish release
uses: softprops/[email protected]
with:
fail_on_unmatched_files: true
files: |
${{runner.workspace}}/build/ramses-sdk*.tar.gz
${{runner.workspace}}/build/ramses-linux.tar.gz
if: ${{ matrix.os == 'ubuntu-20.04' }}

0 comments on commit 14cfbac

Please sign in to comment.