Skip to content

Commit

Permalink
extend CI matrix for different cmake options
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Jaeckel <[email protected]>
  • Loading branch information
sjaeckel committed Mar 15, 2022
1 parent 22dfda7 commit ed6ad7d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ jobs:
strategy:
matrix:
os: [ ubuntu-18.04, ubuntu-20.04 ]
build_type: [ '', -DCMAKE_BUILD_TYPE=Debug, -DCMAKE_BUILD_TYPE=Release, -DCMAKE_BUILD_TYPE=RelWithDebInfo, -DCMAKE_BUILD_TYPE=MinSizeRel ]
cc: [ clang, gcc ]
config:
# Static library build
- { CMAKEOPTIONS: '', TARGET: 'check' }
Expand All @@ -162,10 +164,10 @@ jobs:
- name: install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install cmake
sudo apt-get install -y cmake gcc clang llvm
- name: build
run: |
mkdir build
cd build
cmake ${{ matrix.config.CMAKEOPTIONS }} ..
CC=${{ matrix.cc }} cmake ${{ matrix.config.CMAKEOPTIONS }} ${{ matrix.build_type }} ..
make -j$(nproc) ${{ matrix.config.TARGET }}

0 comments on commit ed6ad7d

Please sign in to comment.