-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (29 loc) · 1 KB
/
ccpp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build
on: [push, pull_request]
jobs:
windows:
name: Build (${{ matrix.os }} - ${{ matrix.type }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2022, windows-2019]
type: [Debug, Release]
exception: [No-Exceptions, C++-Exceptions, structured-Exceptions]
fail-fast: false
steps:
- uses: actions/checkout@v2
- if: matrix.exception == 'No-Exceptions'
name: Configure
run: cmake -S . -B build
- if: matrix.exception == 'C++-Exceptions'
name: Configure
run: cmake -S . -B build -DPTHREADS4W_BUILD_C=FALSE -DPTHREADS4W_BUILD_CE=TRUE
- if: matrix.exception == 'structured-Exceptions'
name: Configure
run: cmake -S . -B build -DPTHREADS4W_BUILD_C=FALSE -DPTHREADS4W_BUILD_SE=TRUE
- name: Build ${{ matrix.type }}
run: cmake --build build --config ${{ matrix.type }}
- name: Test ${{ matrix.type }}
run: |
cd build
ctest -C ${{ matrix.type }}