Skip to content

Commit 5285280

Browse files
committed
ci: run tests, 2 configs
1 parent 0b9b6f8 commit 5285280

File tree

1 file changed

+34
-4
lines changed

1 file changed

+34
-4
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11+
config:
12+
- Debug
13+
- Release
1114
include:
1215
# - {os: debian, codename: bullseye, image_owner: }
1316
# - {os: debian, codename: bullseye, image_owner: , labels: [i386,docker]}
@@ -61,10 +64,20 @@ jobs:
6164
- name: build
6265
run: |
6366
cd out
64-
cmake --build . --parallel
67+
cmake --build . --parallel --config ${{ matrix.config }}
68+
- name: test
69+
run: |
70+
cd out
71+
cmake --build . --config ${{ matrix.config }} --target test
6572
##### macosx #####
6673
macosx:
6774
runs-on: macos-latest
75+
strategy:
76+
fail-fast: false
77+
matrix:
78+
config:
79+
- Debug
80+
- Release
6881
steps:
6982
- name: workaround python2 and python3 issue when upgrading python
7083
run : |
@@ -99,13 +112,26 @@ jobs:
99112
- name: build
100113
run: |
101114
cd out
102-
cmake --build . --parallel
115+
cmake --build . --parallel --config ${{ matrix.config }}
116+
- name: test
117+
run: |
118+
cd out
119+
cmake --build . --config ${{ matrix.config }} --target test
103120
##### windows #####
104121
windows:
105122
runs-on: windows-latest
106123
defaults:
107124
run:
108125
shell: powershell
126+
strategy:
127+
fail-fast: false
128+
matrix:
129+
config:
130+
- Debug
131+
- Release
132+
arch:
133+
- Win32
134+
- x64
109135
name: windows
110136
steps:
111137
- name: git clone
@@ -121,8 +147,12 @@ jobs:
121147
run: |
122148
mkdir out
123149
cd out
124-
cmake ../build/cmake
150+
cmake -A ${{ matrix.arch }} ../build/cmake
125151
- name: build
126152
run: |
127153
cd out
128-
cmake --build . --parallel
154+
cmake --build . --parallel --config ${{ matrix.config }}
155+
- name: test
156+
run: |
157+
cd out
158+
cmake --build . --config ${{ matrix.config }} --target test

0 commit comments

Comments
 (0)