3 # SPDX-License-Identifier: LGPL-2.1-or-later
4 # Simple boot tests that build and boot the mkosi images generated by the mkosi config files in mkosi.conf.d/.
21 - '!shell-completion/**'
39 - '!shell-completion/**'
51 group: ${{ github.workflow }}-${{ matrix.distro }}-${{ matrix.release }}-${{ github.ref }}
52 cancel-in-progress: true
75 - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
76 - uses: systemd/mkosi@af1fe54805c84bb09e80bb585399121946fec701
80 tee mkosi.conf <<- EOF
82 Distribution=${{ matrix.distro }}
83 Release=${{ matrix.release }}
87 Environment=CI_BUILD=1
88 DEFAULT_TIMEOUT_SEC=90
91 KernelCommandLineExtra=systemd.unit=mkosi-check-and-shutdown.service
92 systemd.journald.max_level_console=debug
93 # udev's debug log output is very verbose, so up it to info in CI.
97 - name: Generate secure boot key
100 - name: Build ${{ matrix.distro }}
103 - name: Show ${{ matrix.distro }} image summary
106 - name: Boot ${{ matrix.distro }} systemd-nspawn
109 - name: Check ${{ matrix.distro }} systemd-nspawn
110 run: sudo mkosi shell bash -c "[[ -e /testok ]] || { cat /failed-services; exit 1; }"
112 - name: Boot ${{ matrix.distro }} QEMU
113 run: timeout -k 30 10m mkosi qemu
115 - name: Check ${{ matrix.distro }} QEMU
116 run: sudo mkosi shell bash -c "[[ -e /testok ]] || { cat /failed-services; exit 1; }"