Repository navigation
ogar-dir-sim: three-valued active and the one effective_active definition (V4) #58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |