m1n1/.github/workflows/build.yml
Hector Martin 9e9693eb6c rust: Switch to RUSTC_BOOTSTRAP=1 backdoor instead of nightly
Nightly is messing around with alloc_error_handler and they can't seem
to make up their mind about it, breaking our CI. Just switch to stable
rust with the usual backdoor to enable unstable features (same as the
kernel does).

Signed-off-by: Hector Martin <marcan@marcan.st>
2023-04-25 23:58:05 +09:00

43 lines
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 gcc-aarch64-linux-gnu
- name: Install nightly rust
run: |
export RUSTUP_TOOLCHAIN=stable
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/m1n1.bin