|
81 | 81 | - uses: Swatinem/rust-cache@v2 |
82 | 82 | - name: Run cargo test (without unstable) |
83 | 83 | run: cargo xtask test |
84 | | - lints: |
85 | | - name: Lints |
86 | | - runs-on: ubuntu-latest |
87 | | - steps: |
88 | | - - name: Checkout sources |
89 | | - uses: actions/checkout@v4 |
90 | | - - uses: cachix/install-nix-action@v31 |
91 | | - - uses: Swatinem/rust-cache@v2 |
92 | | - # Dedicated step to separate all the |
93 | | - # "copying path '/nix/store/...' from 'https://cache.nixos.org'." |
94 | | - # messages from the actual build output. |
95 | | - - name: Prepare Nix Store |
96 | | - run: nix develop --command echo |
97 | | - # Executing this in a Nix shell ensures that all our checks run as all |
98 | | - # required tooling exists. |
99 | | - - name: Check formatting |
100 | | - run: | |
101 | | - CMD="cargo xtask fmt --check" |
102 | | - nix develop --command bash -c "$CMD" |
103 | | - - name: Run clippy |
104 | | - run: | |
105 | | - rustup component add clippy |
106 | | - cargo xtask clippy --warnings-as-errors |
107 | | - - name: Run cargo doc (without unstable) |
108 | | - run: cargo xtask doc --warnings-as-errors --document-private-items |
109 | | - - name: Verify generated code is up-to-date |
110 | | - run: cargo xtask gen-code --check |
111 | | - - name: Run additional checks on the uefi-raw package |
112 | | - run: cargo xtask check-raw |
113 | 84 | # Run the build with our current stable MSRV (specified in |
114 | 85 | # ./msrv_toolchain.toml). This serves to check that we don't |
115 | 86 | # accidentally start relying on a new feature without intending |
|
0 commit comments