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

43 lines
1.1 KiB
YAML
Raw Normal View History

2024-01-25 17:13:19 -05:00
name: build-image
run-name: Build the shimboot disk image for all boards
on: [push]
jobs:
2024-01-25 18:46:10 -05:00
build:
permissions:
contents: write
2024-01-25 17:13:19 -05:00
strategy:
matrix:
2024-04-27 00:20:51 -04:00
board: [dedede, octopus, coral, grunt, nissa]
2024-01-25 17:13:19 -05:00
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
2024-04-29 13:27:08 -04:00
root-reserve-mb: 4096
swap-size-mb: 1024
remove-dotnet: 'true'
2024-04-29 13:27:08 -04:00
remove-android: 'true'
remove-haskell: 'true'
2024-01-25 17:13:19 -05:00
- name: download repo
uses: actions/checkout@v4
- name: run build
run: sudo DEBUG=1 ./build_complete.sh ${{ matrix.board }} compress_img=1 quiet=1
2024-01-25 17:13:19 -05:00
- name: upload img
uses: actions/upload-artifact@v4
with:
name: shimboot_${{ matrix.board }}
2024-01-26 03:05:15 -05:00
path: data/shimboot_${{ matrix.board }}.bin
2024-04-29 13:27:08 -04:00
compression-level: 7
2024-01-25 18:46:10 -05:00
- name: create release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
files: data/shimboot_${{ matrix.board }}.zip