os/.forgejo/workflows/build.yaml

33 lines
1 KiB
YAML
Raw Permalink Normal View History

2024-10-10 17:07:00 +02:00
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
2024-10-10 17:07:00 +02:00
- name: Install Rustup
run: curl https://sh.rustup.rs | sh -s -- -y
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
2024-12-25 20:03:32 +01:00
- 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
2024-10-10 17:07:00 +02:00
- name: Build
run: . ~/.bashrc && ./build.py
2024-12-12 20:16:42 +01:00
- name: Install cargo-deny
run: . ~/.bashrc && cargo install cargo-deny
- name: Run cargo-deny
run: . ~/.bashrc && cargo deny check
2025-01-10 14:18:11 +01:00
- name: Run clippy
2025-01-10 14:21:43 +01:00
run: . ~/.bashrc && OS_TARGET=debug ./build.py && cargo clippy -- -Dwarnings