CI fix for mkosi update #39
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build-image: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup mkosi | |
uses: systemd/mkosi@a15a97da5a102414bdd461e92e9faabf899692cc | |
- name: Initialize secure boot secrets | |
if: github.repository == 'davide125/arcadeos' | |
env: | |
ARCADEOS_SECURE_BOOT_CERTIFICATE: ${{vars.ARCADEOS_SECURE_BOOT_CERTIFICATE}} | |
ARCADEOS_SECURE_BOOT_KEY: ${{secrets.ARCADEOS_SECURE_BOOT_KEY}} | |
run: | | |
echo "$ARCADEOS_SECURE_BOOT_CERTIFICATE" > mkosi.crt | |
echo "$ARCADEOS_SECURE_BOOT_KEY" > mkosi.key | |
chmod 0600 mkosi.key | |
- name: Bootstrap | |
run: ./scripts/bootstrap | |
# We have to build systemd first due to a regression introduced in | |
# https://github.com/systemd/mkosi/commit/14e70bf5edf196b3e9b02d1148f54b5f0350417f | |
- name: Build systemd | |
run: ./mkosi -t none | |
- name: Build | |
run: ./mkosi -f |