|
43 | 43 | arguments:
|
44 | 44 | command-arguments: "--hide-inclusion-graph -c .cargo-deny.toml --show-stats -D warnings"
|
45 | 45 |
|
| 46 | + features: |
| 47 | + name: Check packages feature combinations |
| 48 | + runs-on: ubuntu-latest |
| 49 | + steps: |
| 50 | + - name: Checkout repository |
| 51 | + uses: actions/checkout@v4 |
| 52 | + - name: Install cargo-hack |
| 53 | + uses: taiki-e/install-action@v2 |
| 54 | + with: |
| 55 | + tool: cargo-hack |
| 56 | + - name: Set up Cargo cache |
| 57 | + uses: ./.github/actions/setup-cargo-cache |
| 58 | + with: |
| 59 | + key: ${{ github.ref }}->${{ github.workflow }}->${{ github.job }} |
| 60 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
| 61 | + - name: Run cargo-hack |
| 62 | + env: |
| 63 | + RISC0_SKIP_BUILD: true |
| 64 | + RUSTFLAGS: -D warnings |
| 65 | + run: cargo hack --feature-powerset --no-dev-deps check |
| 66 | + - name: Update Cargo cache |
| 67 | + if: success() || failure() |
| 68 | + uses: ./.github/actions/update-cargo-cache |
| 69 | + with: |
| 70 | + key: ${{ github.ref }}->${{ github.workflow }}->${{ github.job }} |
| 71 | + |
| 72 | + unused-deps: |
| 73 | + name: Check for unused dependencies |
| 74 | + runs-on: ubuntu-latest |
| 75 | + steps: |
| 76 | + - name: Checkout repository |
| 77 | + uses: actions/checkout@v4 |
| 78 | + - name: Install cargo-machete |
| 79 | + |
| 80 | + # This step also runs `cargo-machete` without the `--with-metadata` flag, which can trigger more false positives. |
| 81 | + # We ignore errors and run `cargo-machete` with the `--with-metadata` flag for the actual result. |
| 82 | + continue-on-error: true |
| 83 | + - name: Run cargo-machete |
| 84 | + run: cargo machete --with-metadata |
| 85 | + |
46 | 86 | lints:
|
47 | 87 | name: Check Rust lints
|
48 | 88 | runs-on: ubuntu-latest
|
|
0 commit comments