|
51 | 51 | toolchain-version: ${{ matrix.toolchain.version }} |
52 | 52 | builder-triple: ${{ matrix.target.triple }} |
53 | 53 | components: clippy |
54 | | - - name: Install nightly Rust toolchain |
55 | | - id: install-nightly-toolchain |
56 | | - if: steps.setup-rust.outputs.toolchain_cache_hit != 'true' |
57 | | - uses: dtolnay/rust-toolchain@master |
58 | | - with: |
59 | | - toolchain: nightly |
60 | | - components: rustfmt |
61 | | - - name: binstall |
62 | | - uses: cargo-bins/cargo-binstall@main |
63 | | - - name: Install cargo-deny |
64 | | - if: steps.setup-rust.outputs.toolchain_cache_hit != 'true' |
65 | | - run: cargo binstall --no-confirm cargo-deny |
66 | | - - name: Check for unused dependencies (cargo machete) |
67 | | - uses: bnjbvr/cargo-machete@main |
68 | | - with: |
69 | | - args: "--with-metadata" |
70 | | - - name: Dependency audit (cargo deny) |
71 | | - run: cargo deny --workspace --all-features check all |
72 | | - - name: Check formatting (cargo fmt) |
73 | | - run: cargo +nightly fmt --check |
74 | | - - name: Custom workspace checks |
75 | | - run: cargo +${{ matrix.toolchain.version }} run -p checks |
76 | 54 | - name: Lint lib targets (cargo clippy) |
77 | 55 | run: |- |
78 | 56 | cargo +${{ matrix.toolchain.version }} clippy \ |
|
97 | 75 | run: cargo +${{ matrix.toolchain.version }} build --all-features --workspace --release --verbose --all-targets --target ${{ matrix.target.triple }} |
98 | 76 | - name: Docs (cargo doc) |
99 | 77 | run: cargo +${{ matrix.toolchain.version }} doc --workspace --no-deps --all-features --target ${{ matrix.target.triple }} |
| 78 | + |
| 79 | + arch_independent: |
| 80 | + name: arch-independent checks |
| 81 | + runs-on: linux-x86_64-16cpu |
| 82 | + steps: |
| 83 | + - name: Checkout |
| 84 | + uses: actions/checkout@v6 |
| 85 | + - name: Setup rust |
| 86 | + id: setup-rust |
| 87 | + uses: ./.github/actions/setup-rust |
| 88 | + with: |
| 89 | + toolchain-version: nightly |
| 90 | + builder-triple: x86_64-unknown-linux-gnu |
| 91 | + components: rustfmt |
| 92 | + - name: binstall |
| 93 | + uses: cargo-bins/cargo-binstall@main |
| 94 | + - name: Install cargo-deny |
| 95 | + run: command -v cargo-deny || cargo binstall --no-confirm cargo-deny |
| 96 | + - name: Check for unused dependencies (cargo machete) |
| 97 | + uses: bnjbvr/cargo-machete@main |
| 98 | + with: |
| 99 | + args: "--with-metadata" |
| 100 | + - name: Dependency audit (cargo deny) |
| 101 | + run: cargo deny --workspace --all-features check all |
| 102 | + - name: Check formatting (cargo fmt) |
| 103 | + run: cargo +nightly fmt --check |
| 104 | + - name: Custom workspace checks |
| 105 | + run: cargo run -p checks |
0 commit comments