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.default.d/.
21 # Enable debug logging in systemd, but keep udev's log level to info,
22 # since it's _very_ verbose in the QEMU task
23 # Disable the ISC DHCP servers, as they are failing in Ubuntu
24 KERNEL_CMDLINE: "systemd.unit=mkosi-check-and-shutdown.service !quiet systemd.log_level=debug systemd.log_target=console udev.log_level=info systemd.default_standard_output=journal+console systemd.mask=isc-dhcp-server6.service systemd.mask=isc-dhcp-server.service"
30 group: ${{ github.workflow }}-${{ matrix.distro }}-${{ matrix.release }}-${{ github.ref }}
31 cancel-in-progress: true
54 - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
55 - uses: systemd/mkosi@c9772ec920f1cd03181ba14e6fe2c3d35ccb4f92
58 run: sudo apt-get update && sudo apt-get install --no-install-recommends python3-pexpect python3-jinja2
62 tee mkosi.default <<- EOF
64 Distribution=${{ matrix.distro }}
65 Release=${{ matrix.release }}
68 Environment=CI_BUILD=1
71 KernelCommandLine=${{ env.KERNEL_CMDLINE }}
74 - name: Build ${{ matrix.distro }}
75 run: sudo python3 -m mkosi build
77 - name: Show ${{ matrix.distro }} image summary
78 run: sudo python3 -m mkosi summary
80 - name: Boot ${{ matrix.distro }} systemd-nspawn
81 run: sudo python3 -m mkosi boot ${{ env.KERNEL_CMDLINE }}
83 - name: Check ${{ matrix.distro }} systemd-nspawn
84 run: sudo python3 -m mkosi shell bash -c "[[ -e /testok ]] || { cat /failed-services; exit 1; }"
86 - name: Boot ${{ matrix.distro }} QEMU
87 run: sudo timeout -k 30 10m python3 -m mkosi qemu
89 - name: Check ${{ matrix.distro }} QEMU
90 run: sudo python3 -m mkosi shell bash -c "[[ -e /testok ]] || { cat /failed-services; exit 1; }"