add cmake tests to CI Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
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 35 36 37 38 39 40
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 9e4cee0..015afe1 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -25,7 +25,7 @@ on:
- /^ci\/.*$/
jobs:
- Build:
+ Testme:
runs-on: ${{ matrix.os }}
strategy:
matrix:
@@ -146,3 +146,26 @@ jobs:
cat test_*.log || true
cat valgrind_test.log || true
cat gcc_errors_*.log || true
+
+ CMake:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ ubuntu-18.04, ubuntu-20.04 ]
+ config:
+ # Static library build
+ - { CMAKEOPTIONS: '', TARGET: 'check' }
+ # Shared library build
+ - { CMAKEOPTIONS: '-DBUILD_SHARED_LIBS=On', TARGET: 'check'}
+ steps:
+ - uses: actions/checkout@v2
+ - name: install dependencies
+ run: |
+ sudo apt-get update -qq
+ sudo apt-get install cmake
+ - name: build
+ run: |
+ mkdir build
+ cd build
+ cmake ${{ matrix.config.CMAKEOPTIONS }} ..
+ make -j$(nproc) ${{ matrix.config.TARGET }}