m1n1/.github/workflows/build.yml
Hector Martin eb49df38bd rust: Initial Rust-based EFI FAT32 chainloader
This code is gated behind the CHAINLOADING define. To build a
release-style m1n1 with chainloading for use with the installer
or kmutil, use:

make CHAINLOADING=1 RELEASE=1

To tell m1n1 to chainload another binary, use this var payload:

chainload=<ESP partition UUID>;<file path>

e.g.

chainload=a17b7e46-e950-bb4f-bc82-8ab1047a058e;m1n1/m1n1.bin

Closes: #154
Co-authored-by: Finn Behrens <me@kloenk.dev>
Co-authored-by: Joey Gouly <joey.gouly@arm.com>
Signed-off-by: Hector Martin <marcan@marcan.st>
2022-03-09 21:50:40 +09:00

43 lines
1.1 KiB
YAML

# This is a basic workflow to help you get started with Actions
name: build
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: install aarch64-linux-gnu- toolchain
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y device-tree-compiler gcc-aarch64-linux-gnu
- name: install nightly rust
run: |
export RUSTUP_TOOLCHAIN=nightly
rustup target install aarch64-unknown-none-softfloat
- name: build
run: make -k -j2 ARCH=aarch64-linux-gnu- CHAINLOADING=1
- uses: actions/upload-artifact@v2
with:
name: m1n1
path: |
build/m1n1.macho
build/dtb/t8103-j274.dtb