Skip to content

Commit ec87caa

Browse files
committed
add tests for debian
1 parent d17390c commit ec87caa

1 file changed

Lines changed: 36 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ env:
66
BUILD_TYPE: Debug
77

88
jobs:
9-
build:
9+
test_ubuntu:
10+
name: Test ${{matrix.os}}
1011
runs-on: ${{matrix.os}}
1112
strategy:
1213
matrix:
@@ -36,3 +37,37 @@ jobs:
3637
working-directory: ${{github.workspace}}/build
3738
shell: bash
3839
run: ctest -C $BUILD_TYPE
40+
41+
test_debian:
42+
name: Test debian ${{matrix.os}}
43+
runs-on: ubuntu-latest
44+
container: debian:${{matrix.os}}
45+
46+
strategy:
47+
matrix:
48+
os: [bookworm, trixie]
49+
50+
steps:
51+
- uses: actions/checkout@v4
52+
53+
- name: Install dependencies
54+
shell: bash
55+
run: apt install libcunit1-dev
56+
57+
- name: Create Build Environment
58+
run: cmake -E make_directory ${{github.workspace}}/build
59+
60+
- name: Configure CMake
61+
shell: bash
62+
working-directory: ${{github.workspace}}/build
63+
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
64+
65+
- name: Build
66+
working-directory: ${{github.workspace}}/build
67+
shell: bash
68+
run: cmake --build . --config $BUILD_TYPE
69+
70+
- name: Test
71+
working-directory: ${{github.workspace}}/build
72+
shell: bash
73+
run: ctest -C $BUILD_TYPE

0 commit comments

Comments
 (0)