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

43 lines
1.1 KiB
YAML
Raw Normal View History

2024-01-25 16:13:19 -06:00
name: build-image
run-name: Build the shimboot disk image for all boards
on: [push]
jobs:
2024-01-25 17:46:10 -06:00
build:
permissions:
contents: write
2024-01-25 16:13:19 -06:00
strategy:
matrix:
2024-04-26 23:20:51 -05:00
board: [dedede, octopus, coral, grunt, nissa]
2024-01-25 16:13:19 -06:00
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
2024-04-29 12:27:08 -05:00
root-reserve-mb: 4096
swap-size-mb: 1024
remove-dotnet: 'true'
2024-04-29 12:27:08 -05:00
remove-android: 'true'
remove-haskell: 'true'
2024-01-25 16:13:19 -06: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 16:13:19 -06:00
- name: upload img
uses: actions/upload-artifact@v4
with:
name: shimboot_${{ matrix.board }}
2024-01-26 02:05:15 -06:00
path: data/shimboot_${{ matrix.board }}.bin
2024-04-29 12:27:08 -05:00
compression-level: 7
2024-01-25 17:46:10 -06: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