Files
radicle-explorer/.github/workflows/check-rust.yml
T
Rūdolfs Ošiņš d83ed92a84 Remove Rust docs from CI
They aren't useful to us, and building them is the slowest step. We
did the same for desktop.
2026-10-13 17:23:20 +02:00

50 lines
1.3 KiB
YAML

name: check-rust
on:
push:
workflow_dispatch:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@1.97.1
- uses: Swatinem/rust-cache@v2
with:
workspaces: ". -> target"
- name: Build (all features)
run: cargo build --workspace --all-features
env:
RUSTFLAGS: -D warnings
- name: Test (all features)
run: cargo test --workspace --all-features
- name: Test httpd without search
run: cargo test -p radicle-httpd
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@1.97.1
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
with:
workspaces: ". -> target"
- name: Run clippy
run: cargo clippy --workspace --all-features --tests
env:
RUSTFLAGS: -D warnings
# Nothing else compiles the artifacts-off path, so it would rot.
- name: Run clippy on httpd without default features
run: cargo clippy -p radicle-httpd --no-default-features --tests
env:
RUSTFLAGS: -D warnings
- name: Check formatting
run: cargo fmt --all -- --check