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 - name: Run clippy run: . ~/.bashrc && OS_TARGET=debug ./build.py && cargo clippy -- -Dwarnings