Skip to content

Commit

Permalink
CI: Use Cmake presets for Release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Dasperal committed Aug 18, 2024
1 parent 6f38f0d commit e1198b0
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/release-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
msys_msystem: "MINGW32"
msys_prefix: "i686"
compiler_name: "gcc"
cmake_gen: "Ninja"
cmake_preset: 'ci-msys2-release'
build_suffix: "x86"
-
display_name: "Windows | x64"
Expand All @@ -29,7 +29,7 @@ jobs:
msys_msystem: "UCRT64"
msys_prefix: "ucrt-x86_64"
compiler_name: "gcc"
cmake_gen: "Ninja"
cmake_preset: 'ci-msys2-release'
build_suffix: "x64"

permissions:
Expand Down Expand Up @@ -57,22 +57,10 @@ jobs:
- uses: actions/checkout@v4

- name: Configure
run: |
cmake -G "${{ matrix.config.cmake_gen }}" ${{ matrix.config.cmake_opts }} \
-D CMAKE_BUILD_TYPE=Release \
-S . -B build
- name: Build
- name: Configure & Build & Package
run: |
export MAKEFLAGS=--keep-going
cmake --build build --parallel 2
- name: Package Zip
if: runner.os == 'Windows'
run: |
cd build
cpack -G ZIP
cmake --workflow --preset "${{ matrix.config.cmake_preset }}"
- name: Upload Zip
if: runner.os == 'Windows'
Expand Down

0 comments on commit e1198b0

Please sign in to comment.