Skip to content

Commit f1a878f

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

1 file changed

Lines changed: 39 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 39 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,40 @@ 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:
45+
image: debian:${{matrix.os}}
46+
volumes:
47+
- ${{github.workspace}}:${{github.workspace}}
48+
49+
strategy:
50+
matrix:
51+
os: [bookworm, trixie]
52+
53+
steps:
54+
- uses: actions/checkout@v4
55+
56+
- name: Install dependencies
57+
shell: bash
58+
run: apt update && apt install build-essential cmake libcunit1-dev --yes
59+
60+
- name: Create Build Environment
61+
run: cmake -E make_directory ${{github.workspace}}/build
62+
63+
- name: Configure CMake
64+
shell: bash
65+
working-directory: ${{github.workspace}}/build
66+
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
67+
68+
- name: Build
69+
working-directory: ${{github.workspace}}/build
70+
shell: bash
71+
run: cmake --build . --config $BUILD_TYPE
72+
73+
- name: Test
74+
working-directory: ${{github.workspace}}/build
75+
shell: bash
76+
run: ctest -C $BUILD_TYPE

0 commit comments

Comments
 (0)