Debian Codegraph @

.github/workflows/mkosi.yml

raw
1 name: mkosi
2
3 on:
4 push:
5 branches:
6 - main
7 pull_request:
8 branches:
9 - main
10
11 jobs:
12 boot:
13 runs-on: ${{ matrix.runner }}
14 concurrency:
15 group: ${{ github.workflow }}-${{ matrix.distro }}-${{ matrix.bootloader }}-${{ matrix.uki }}-${{ matrix.runner }}-${{ github.ref }}
16 cancel-in-progress: true
17 strategy:
18 fail-fast: false
19 matrix:
20 distro:
21 - fedora
22 - centos
23 - ubuntu
24 - debian
25 bootloader:
26 # Locally signed systemd-boot
27 - systemd-boot
28 # Distro signed grub2
29 - grub-signed
30 uki:
31 # BLS #1 boot, kernel + initrd
32 - none
33 # BLS #2 boot, locally built UKI (unsigned because it is not provided by the distro)
34 - unsigned
35 runner:
36 - ubuntu-24.04
37 - ubuntu-24.04-arm
38 include:
39 # Debian provides distro-signed systemd-boot
40 - distro: debian
41 bootloader: systemd-boot-signed
42 uki: unsigned
43 runner: ubuntu-24.04
44 - distro: debian
45 bootloader: systemd-boot-signed
46 uki: unsigned
47 runner: ubuntu-24.04-arm
48 exclude:
49 # The systemd-boot version in 24.04 fails to boot the arm64 compressed kernel
50 - distro: ubuntu
51 bootloader: systemd-boot
52 uki: none
53 runner: ubuntu-24.04-arm
54 # grub fails to load UKI with: error: ../../grub-core/script/function.c:119:can't find command `chainloader'
55 - distro: centos
56 bootloader: grub-signed
57 uki: unsigned
58 runner: ubuntu-24.04-arm
59 - distro: fedora
60 bootloader: grub-signed
61 uki: unsigned
62 runner: ubuntu-24.04-arm
63 # kernel is not signed
64 - distro: fedora
65 bootloader: grub-signed
66 uki: none
67 runner: ubuntu-24.04-arm
68
69 steps:
70 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
71 with:
72 submodules: recursive
73 - uses: systemd/mkosi@main
74
75 - name: Generate key
76 run: mkosi genkey
77
78 - name: Summary
79 run: mkosi summary
80
81 - name: Build tools tree
82 run: mkosi -f sandbox -- true
83
84 - name: Build image
85 run: mkosi sandbox -- mkosi --distribution ${{ matrix.distro }} --bootloader ${{ matrix.bootloader }} --unified-kernel-images ${{ matrix.uki }} --kernel-command-line=systemd.unit=mkosi-test.service -f build
86
87 - name: Run smoke tests
88 run: test "$(timeout -k 30 5m mkosi sandbox -- mkosi --distribution ${{ matrix.distro }} --kernel-command-line-extra=systemd.unit=mkosi-test.service qemu 1>&2; echo $?)" -eq 123