Skip to content

Commit

Permalink
Update cmake-multi-platform.yml
Browse files Browse the repository at this point in the history
Added steps to build tar files and upload it on release
  • Loading branch information
Rougher O authored Jun 7, 2024
1 parent 404b2e1 commit dae28fe
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defaults:
shell: bash

jobs:
build:
build_release:
name: ${{ matrix.platform.name }} ${{ matrix.config.name }}
runs-on: ${{ matrix.platform.os }}

Expand Down Expand Up @@ -42,7 +42,19 @@ jobs:
run: sudo apt-get update && sudo apt-get install libxrandr-dev libxcursor-dev libudev-dev libopenal-dev libflac-dev libvorbis-dev libgl1-mesa-dev libegl1-mesa-dev

- name: Configure CMake
run: cmake -S ${{ github.workspace }} --preset=release
run: cmake --preset=release

- name: Build
run: cmake --build --preset=release-build

- name: Package build file
run: |
cd build/release/
cpack
- name: Create GitHub Release and upload artifacts
shell: bash
run: |
gh release create v2.0.x *.tar.gz *.zip
env:
GITHUB_TOKEN: ${{ github.TOKEN }}

0 comments on commit dae28fe

Please sign in to comment.