Files
bhs/.gitea/workflows/build.yaml
icsboyx a630415818
Some checks failed
Rust CI / build-test (push) Failing after 1m7s
ok test
2026-01-08 14:47:14 +01:00

38 lines
796 B
YAML

name: Rust CI
on:
push:
branches: ["**"]
pull_request:
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust (stable)
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
- name: Format (check)
run: cargo +nightly fmt --all -- --check
- name: Clippy
run: cargo +nightly clippy --all-targets --all-features -- -D warnings
- name: Build (release)
run: cargo build --release