Skip to content

Commit 26affb8

Browse files
committed
github: add mkosi-based tests (freestanding mode)
Based on #77 Signed-off-by: Ariadne Conill <[email protected]>
1 parent 8db7dc2 commit 26affb8

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.github/workflows/mkosi-tests.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build and test libucontext (meson + mkosi)
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
mkosi:
12+
runs-on: ${{matrix.runner}}
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ matrix.distro }}-${{ github.ref }}-${{ matrix.runner }}
15+
cancel-in-progress: true
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
- distro: [arch, debian, fedora, centos, opensuse]
20+
- runner: [ubuntu-24.04, ubuntu-24.04-arm]
21+
22+
steps:
23+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
24+
- uses: systemd/mkosi@d45142e329550abc9c6fc63c1f1f86e5286d3d67
25+
26+
- name: Configure
27+
run: |
28+
tee mkosi/mkosi.local.conf <<EOF
29+
[Build]
30+
ToolsTreeDistribution=${{ matrix.distro }}
31+
EOF
32+
- name: Setup
33+
run: mkosi -f box -- meson setup build -Dfreestanding=true
34+
35+
- name: Build
36+
run: mkosi -f box -- meson compile -C build
37+
38+
- name: Test
39+
run: mkosi -f box -- meson test -C build --print-errorlogs

mkosi.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[Build]
2+
CacheDirectory=mkosi.cache
3+
ToolsTree=default
4+
ToolsTreeProfiles=misc,devel

0 commit comments

Comments
 (0)