Skip to content

Commit

Permalink
Linux build generates a debian package
Browse files Browse the repository at this point in the history
  • Loading branch information
violinyanev committed Jan 11, 2023
1 parent 69d9069 commit df02029
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
sudo apt-get install libgles2-mesa-dev libx11-dev
cmake $GITHUB_WORKSPACE \
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
-Dramses-sdk_CPACK_GENERATOR=DEB \
-Dramses-sdk_BUILD_TESTS=OFF \
-Dramses-sdk_BUILD_EXAMPLES=OFF \
-Dramses-sdk_BUILD_SMOKE_TESTS=OFF \
Expand All @@ -38,7 +39,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' {} \;
find . -name '*deb' -exec bash -c 'mv $0 ramses-linux-x64.deb' {} \;
if: ${{ matrix.os == 'ubuntu-20.04' }}

- name: Build and package (Windows)
Expand All @@ -55,8 +56,8 @@ jobs:
echo "Path after: $PATH"
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE \
-Dramses_CPACK_GENERATOR=ZIP \
-DCMAKE_CONFIGURATION_TYPES=$BUILD_TYPE \
-Dramses-sdk_CPACK_GENERATOR=ZIP \
-Dramses-sdk_BUILD_TESTS=OFF \
-Dramses-sdk_BUILD_EXAMPLES=OFF \
-Dramses-sdk_BUILD_SMOKE_TESTS=OFF \
Expand All @@ -66,21 +67,21 @@ jobs:
cmake --build . --target package --config $BUILD_TYPE
find . -name '*tar.gz' -exec bash -c 'mv $0 ramses-windows.tar.gz' {} \;
find . -name '*tar.gz' -exec bash -c 'mv $0 ramses-windows-x64.tar.gz' {} \;
if: ${{ matrix.os == 'windows-2019' }}

- name: Publish release
uses: softprops/action-gh-release@v0.1.13
with:
fail_on_unmatched_files: true
files: |
${{runner.workspace}}/build/ramses-windows.tar.gz
${{runner.workspace}}/build/ramses-windows-x64.tar.gz
if: ${{ matrix.os == 'windows-2019' }}

- name: Publish release
uses: softprops/action-gh-release@v0.1.13
with:
fail_on_unmatched_files: true
files: |
${{runner.workspace}}/build/ramses-linux.tar.gz
${{runner.workspace}}/build/ramses-linux-x64.deb
if: ${{ matrix.os == 'ubuntu-20.04' }}

0 comments on commit df02029

Please sign in to comment.