scripts: improve resiliance #78
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@v5 | |
- 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 | |
- name: Setup mkosi | |
uses: ./submodules/mkosi | |
# https://github.com/systemd/mkosi/commit/57ebda7c5fa47a4dd3df829d776a10c23e8cdb4a | |
- name: Build tools tree | |
run: ./mkosi -f box -- true | |
- name: Free disk space | |
run: sudo rm -rf /usr/local/lib/android /usr/share/dotnet | |
- name: Build | |
run: ./mkosi -f |