|
9 | 9 | workflow_dispatch: |
10 | 10 |
|
11 | 11 | env: |
12 | | - BUILD_PROFILE: release-lto |
13 | 12 | CARGO_TARGET_DIR: target |
14 | 13 | CARGO_INCREMENTAL: 0 |
15 | 14 |
|
16 | 15 | jobs: |
17 | | - check: |
18 | | - name: Check |
19 | | - runs-on: ubuntu-latest |
20 | | - env: |
21 | | - RUSTFLAGS: -D warnings |
22 | | - steps: |
23 | | - - name: Checkout |
24 | | - uses: actions/checkout@v4 |
25 | | - - name: Setup Rust toolchain |
26 | | - uses: dtolnay/rust-toolchain@stable |
27 | | - with: |
28 | | - components: clippy |
29 | | - - name: Cache Rust workspace |
30 | | - uses: Swatinem/rust-cache@v2 |
31 | | - - name: Cargo check |
32 | | - run: cargo check --all-features --all-targets |
33 | | - - name: Cargo clippy |
34 | | - run: cargo clippy --all-features --all-targets |
35 | | - |
36 | 16 | fmt: |
37 | 17 | name: Format |
38 | 18 | runs-on: ubuntu-latest |
|
49 | 29 | - name: Cargo fmt |
50 | 30 | run: cargo fmt --all --check |
51 | 31 |
|
52 | | - deny: |
53 | | - name: Deny |
54 | | - runs-on: ubuntu-latest |
55 | | - strategy: |
56 | | - matrix: |
57 | | - checks: |
58 | | - - advisories |
59 | | - - bans licenses sources |
60 | | - # Prevent new advisories from failing CI |
61 | | - continue-on-error: ${{ matrix.checks == 'advisories' }} |
62 | | - steps: |
63 | | - - uses: actions/checkout@v4 |
64 | | - - uses: EmbarkStudios/cargo-deny-action@v2 |
65 | | - with: |
66 | | - command: check ${{ matrix.checks }} |
67 | | - |
68 | 32 | test: |
69 | 33 | name: Test |
70 | 34 | strategy: |
@@ -148,15 +112,15 @@ jobs: |
148 | 112 | key: ${{ matrix.target }} |
149 | 113 | - name: Cargo build |
150 | 114 | run: > |
151 | | - cargo ${{ matrix.build }} --profile ${{ env.BUILD_PROFILE }} --target ${{ matrix.target }} |
| 115 | + cargo ${{ matrix.build }} --target ${{ matrix.target }} |
152 | 116 | --bin ${{ env.CARGO_BIN_NAME }} |
153 | 117 | - name: Upload artifacts |
154 | 118 | uses: actions/upload-artifact@v4 |
155 | 119 | with: |
156 | 120 | name: ${{ env.CARGO_BIN_NAME }}-${{ matrix.name }} |
157 | 121 | path: | |
158 | | - ${{ env.CARGO_TARGET_DIR }}/${{ matrix.target }}/${{ env.BUILD_PROFILE }}/${{ env.CARGO_BIN_NAME }} |
159 | | - ${{ env.CARGO_TARGET_DIR }}/${{ matrix.target }}/${{ env.BUILD_PROFILE }}/${{ env.CARGO_BIN_NAME }}.exe |
| 122 | + ${{ env.CARGO_TARGET_DIR }}/${{ matrix.target }}/${{ env.CARGO_BIN_NAME }} |
| 123 | + ${{ env.CARGO_TARGET_DIR }}/${{ matrix.target }}/${{ env.CARGO_BIN_NAME }}.exe |
160 | 124 | if-no-files-found: error |
161 | 125 |
|
162 | 126 | release: |
|
0 commit comments