|
8 | 8 | - uses: actions/checkout@v4 |
9 | 9 | # Executes "typos ." |
10 | 10 | - uses: crate-ci/[email protected] |
| 11 | + lints: |
| 12 | + name: Lints |
| 13 | + runs-on: ubuntu-latest |
| 14 | + steps: |
| 15 | + - name: Checkout sources |
| 16 | + uses: actions/checkout@v4 |
| 17 | + - uses: cachix/install-nix-action@v31 |
| 18 | + - uses: Swatinem/rust-cache@v2 |
| 19 | + # Dedicated step to separate all the |
| 20 | + # "copying path '/nix/store/...' from 'https://cache.nixos.org'." |
| 21 | + # messages from the actual build output. |
| 22 | + - name: Prepare Nix Store |
| 23 | + run: nix develop --command echo |
| 24 | + # A dedicated step removes spam from the actual job. |
| 25 | + - name: Build cargo xtask |
| 26 | + run: cargo xtask help >/dev/null |
| 27 | + # Executing this in a Nix shell ensures that all our checks run as all |
| 28 | + # required tooling exists. |
| 29 | + - name: Check formatting |
| 30 | + run: | |
| 31 | + CMD="cargo xtask fmt --check" |
| 32 | + nix develop --command bash -c "$CMD" |
| 33 | + - name: Run clippy |
| 34 | + run: | |
| 35 | + rustup component add clippy |
| 36 | + cargo xtask clippy --warnings-as-errors |
| 37 | + - name: Run cargo doc (without unstable) |
| 38 | + run: cargo xtask doc --warnings-as-errors --document-private-items |
| 39 | + - name: Verify generated code is up-to-date |
| 40 | + run: cargo xtask gen-code --check |
| 41 | + - name: Run additional checks on the uefi-raw package |
| 42 | + run: cargo xtask check-raw |
0 commit comments