-
Notifications
You must be signed in to change notification settings - Fork 50
42 lines (35 loc) · 1.07 KB
/
Copy pathmkosi-tests.yaml
File metadata and controls
42 lines (35 loc) · 1.07 KB
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
41
42
name: Build and test libucontext (meson + mkosi)
on:
pull_request:
push:
permissions:
contents: read
jobs:
mkosi:
runs-on: ${{matrix.runner}}
concurrency:
group: ${{ github.workflow }}-${{ matrix.distro }}-${{ github.ref }}-${{ matrix.runner }}
cancel-in-progress: true
strategy:
fail-fast: false
matrix:
distro: [arch, debian, fedora, centos, opensuse]
runner: [ubuntu-24.04, ubuntu-24.04-arm]
exclude:
- distro: arch
runner: ubuntu-24.04-arm
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: systemd/mkosi@d45142e329550abc9c6fc63c1f1f86e5286d3d67
- name: Configure
run: |
tee mkosi.local.conf <<EOF
[Build]
ToolsTreeDistribution=${{ matrix.distro }}
EOF
- name: Setup
run: mkosi -f box -- meson setup build -Dfreestanding=true
- name: Build
run: mkosi -f box -- meson compile -C build
- name: Test
run: mkosi -f box -- meson test -C build --print-errorlogs