Skip to content

Commit c544108

Browse files
committed
add cmake tests to CI
Signed-off-by: Steffen Jaeckel <[email protected]>
1 parent fc123a2 commit c544108

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ on:
2525
- /^ci\/.*$/
2626

2727
jobs:
28-
Build:
28+
Testme:
2929
runs-on: ${{ matrix.os }}
3030
strategy:
3131
matrix:
@@ -146,3 +146,26 @@ jobs:
146146
cat test_*.log || true
147147
cat valgrind_test.log || true
148148
cat gcc_errors_*.log || true
149+
150+
CMake:
151+
runs-on: ${{ matrix.os }}
152+
strategy:
153+
matrix:
154+
os: [ ubuntu-18.04, ubuntu-20.04 ]
155+
config:
156+
# Static library build
157+
- { CMAKEOPTIONS: '', TARGET: 'check' }
158+
# Shared library build
159+
- { CMAKEOPTIONS: '-DBUILD_SHARED_LIBS=On', TARGET: 'check'}
160+
steps:
161+
- uses: actions/checkout@v2
162+
- name: install dependencies
163+
run: |
164+
sudo apt-get update -qq
165+
sudo apt-get install cmake
166+
- name: build
167+
run: |
168+
mkdir build
169+
cd build
170+
cmake ${{ matrix.config.CMAKEOPTIONS }} ..
171+
make -j$(nproc) ${{ matrix.config.TARGET }}

0 commit comments

Comments
 (0)