Skip to content

ogar-dir-sim: three-valued active and the one effective_active definition (V4) #58

ogar-dir-sim: three-valued active and the one effective_active definition (V4)

ogar-dir-sim: three-valued active and the one effective_active definition (V4) #58

Workflow file for this run

name: lint
on:
push:
branches: [main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
jobs:
format:
name: cargo fmt --check
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
# No `toolchain:` input — the action reads `rust-toolchain.toml`, so the
# pinned version lives in exactly ONE place.
components: rustfmt, clippy
- name: cargo fmt --all --check
run: cargo fmt --all --check
clippy:
name: cargo clippy -D warnings
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
# No `toolchain:` input — the action reads `rust-toolchain.toml`, so the
# pinned version lives in exactly ONE place.
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: cargo clippy --all-targets -- -D warnings
run: cargo clippy --all-targets -- -D warnings