|
29 | 29 | with:
|
30 | 30 | args: -- -D warnings --verbose -A clippy::wrong-self-convention -A clippy::many_single_char_names -A clippy::upper-case-acronyms
|
31 | 31 |
|
| 32 | + msrv: |
| 33 | + runs-on: ubuntu-22.04 |
| 34 | + |
| 35 | + env: |
| 36 | + CARGO_INCREMENTAL: 0 |
| 37 | + RUSTFLAGS: '-Dwarnings' |
| 38 | + |
| 39 | + steps: |
| 40 | + - uses: actions/checkout@v4 |
| 41 | + |
| 42 | + # Minimum version in build.rs |
| 43 | + - name: Install NASM 2.15 |
| 44 | + uses: ilammy/setup-nasm@v1 |
| 45 | + with: |
| 46 | + version: 2.15 |
| 47 | + |
| 48 | + # Minimum version in Cargo.toml |
| 49 | + - name: Install Rust 1.70.0 |
| 50 | + |
| 51 | + with: |
| 52 | + targets: wasm32-unknown-unknown |
| 53 | + |
| 54 | + - uses: Swatinem/rust-cache@v2 |
| 55 | + |
| 56 | + - name: Run cargo check |
| 57 | + run: cargo check |
| 58 | + |
| 59 | + - name: Run cargo check (wasm32) |
| 60 | + run: > |
| 61 | + cargo check |
| 62 | + --target wasm32-unknown-unknown |
| 63 | + --no-default-features |
| 64 | + -F wasm |
| 65 | +
|
32 | 66 | build-unix:
|
33 | 67 | strategy:
|
34 | 68 | matrix:
|
|
84 | 118 | SCCACHE_IDLE_TIMEOUT: 0
|
85 | 119 |
|
86 | 120 | runs-on: ubuntu-22.04
|
| 121 | + needs: [rustfmt-clippy, msrv] |
87 | 122 |
|
88 | 123 | steps:
|
89 | 124 | - uses: actions/checkout@v4
|
@@ -307,6 +342,8 @@ jobs:
|
307 | 342 | SCCACHE_DIR: /Users/runner/Library/Caches/Mozilla.sccache
|
308 | 343 |
|
309 | 344 | runs-on: macos-latest
|
| 345 | + needs: [rustfmt-clippy, msrv] |
| 346 | + |
310 | 347 | steps:
|
311 | 348 | - uses: actions/checkout@v4
|
312 | 349 | - name: Install sccache
|
@@ -382,6 +419,8 @@ jobs:
|
382 | 419 | SCCACHE_DIR: C:\sccache
|
383 | 420 |
|
384 | 421 | runs-on: windows-latest
|
| 422 | + needs: [rustfmt-clippy, msrv] |
| 423 | + |
385 | 424 | steps:
|
386 | 425 | - uses: actions/checkout@v4
|
387 | 426 | - uses: ilammy/setup-nasm@v1
|
|
0 commit comments