os/.forgejo/workflows/build.yaml
Mathieu Strypsteen f0b4236407
All checks were successful
Build / build (push) Successful in 2m43s
Download compiler in CI
2024-12-25 20:44:02 +01:00

30 lines
960 B
YAML

name: Build
on: [push]
jobs:
build:
runs-on: debian-12
steps:
- name: Install dependencies
run: apt-get update && apt-get install -y clang gcc-multilib llvm mtools parted python3 udev
- name: Install Rustup
run: curl https://sh.rustup.rs | sh -s -- -y
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Download Rust
run: |
curl -O ${{ vars.RUST_URL }}
mkdir rust
cd rust
unzip ../compiler.zip
chmod +x bin/rustc
chmod +x lib/rustlib/x86_64-unknown-linux-gnu/bin/rust-lld
- name: Link toolchain
run: . ~/.bashrc && rustup toolchain link x86_64-unknown-os rust
- name: Build
run: . ~/.bashrc && ./build.py
- name: Install cargo-deny
run: . ~/.bashrc && cargo install cargo-deny
- name: Run cargo-deny
run: . ~/.bashrc && cargo deny check