Skip to content

Commit ed6ad7d

Browse files
committed
extend CI matrix for different cmake options
Signed-off-by: Steffen Jaeckel <[email protected]>
1 parent 22dfda7 commit ed6ad7d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ jobs:
152152
strategy:
153153
matrix:
154154
os: [ ubuntu-18.04, ubuntu-20.04 ]
155+
build_type: [ '', -DCMAKE_BUILD_TYPE=Debug, -DCMAKE_BUILD_TYPE=Release, -DCMAKE_BUILD_TYPE=RelWithDebInfo, -DCMAKE_BUILD_TYPE=MinSizeRel ]
156+
cc: [ clang, gcc ]
155157
config:
156158
# Static library build
157159
- { CMAKEOPTIONS: '', TARGET: 'check' }
@@ -162,10 +164,10 @@ jobs:
162164
- name: install dependencies
163165
run: |
164166
sudo apt-get update -qq
165-
sudo apt-get install cmake
167+
sudo apt-get install -y cmake gcc clang llvm
166168
- name: build
167169
run: |
168170
mkdir build
169171
cd build
170-
cmake ${{ matrix.config.CMAKEOPTIONS }} ..
172+
CC=${{ matrix.cc }} cmake ${{ matrix.config.CMAKEOPTIONS }} ${{ matrix.build_type }} ..
171173
make -j$(nproc) ${{ matrix.config.TARGET }}

0 commit comments

Comments
 (0)