name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
rust:
if: github.event_name != 'pull_request' || github.event.pull_request.user.type != 'Bot'
runs-on: [self-hosted, node-b, linux, x64, rust]
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt,clippy
- run: cargo fmt --all -- --check
- run: cargo check --workspace
- run: cargo test --workspace
- run: cargo clippy --workspace --all-targets -- -D warnings