shimboot/.github/workflows/build-image.yaml

43 lines
1.1 KiB
YAML

name: build-image
run-name: Build the shimboot disk image for all boards
on: [push]
jobs:
main:
strategy:
matrix:
board: [dedede, octopus]
runs-on: ubuntu-latest
steps:
- name: wait for rootfs build to finish
uses: lewagon/wait-on-check-action@v1.3.3
with:
ref: ${{ github.ref }}
running-workflow-name: build-rootfs
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
- name: download repo
uses: actions/checkout@v4
- name: download rootfs
uses: actions/download-artifact@v4
with:
name: rootfs_tar
path: data/rootfs.tar.gz
- name: extract rootfs
run: |
sudo mkdir -p data/rootfs
sudo tar -xvf data/rootfs.tar.gz -C data/rootfs
- name: run build
run: sudo DEBUG=1 ./build_complete.sh ${{ matrix.board }} compress_img=1 rootfs_dir=./data/rootfs
- name: upload img
uses: actions/upload-artifact@v4
with:
name: shimboot_${{ matrix.board }}
path: data/shimboot_${{ matrix.board }}.zip
compression-level: 0