Skip to content

Commit

Permalink
ci 13 (debug build)
Browse files Browse the repository at this point in the history
  • Loading branch information
ConorWilliams committed Sep 17, 2023
1 parent fdf35df commit b05004e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ on:

jobs:
job:
name: test-${{ matrix.os }}-${{ github.workflow }}
name: test-${{ matrix.os }}-${{ github.workflow }}-${{ matrix.build-type }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
build-type: [Debug, Release]
os: [ubuntu-latest, macos-13, windows-latest]
include:
- os: windows-latest
Expand Down Expand Up @@ -86,11 +87,12 @@ jobs:
run: cmake "--preset=ci-$("${{ matrix.os }}".split("-")[0])"

- name: Build
run: cmake --build build --config Release -j 2
run: cmake --build build --config ${{ matrix.os }} -j 2

- name: Install
run: cmake --install build --config Release --prefix prefix
run: cmake --install build --config ${{ matrix.os }} --prefix prefix

- name: Test
if: matrix.os != 'windows-latest'
working-directory: build
run: ctest --output-on-failure --no-tests=error -C Release -j 2
run: ctest --output-on-failure --no-tests=error -C ${{ matrix.os }} -j 2
10 changes: 2 additions & 8 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,7 @@
"flags-linux",
"ci-vcpkg",
"ci-std"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
]
},
{
"name": "ci-darwin",
Expand All @@ -109,10 +106,7 @@
"flags-darwin",
"ci-vcpkg",
"ci-std"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
]
},
{
"name": "ci-win64",
Expand Down

0 comments on commit b05004e

Please sign in to comment.