|
19 | 19 |
|
20 | 20 | jobs:
|
21 | 21 | test:
|
22 |
| - name: Test Rust ${{ matrix.rust }} on ${{ matrix.os }} |
23 |
| - runs-on: ${{ matrix.os }} |
| 22 | + name: Test Rust ${{ matrix.name }} on ${{ matrix.target }} |
| 23 | + runs-on: ${{ matrix.runner }} |
24 | 24 | continue-on-error: ${{ matrix.experimental }}
|
25 | 25 | strategy:
|
26 |
| - fail-fast: false |
27 | 26 | matrix:
|
28 | 27 | include:
|
29 |
| - - { rust: stable, os: ubuntu-latest, experimental: false } |
30 |
| - - { rust: stable, os: macos-latest, experimental: false } |
31 |
| - - { rust: stable, os: windows-latest, experimental: true } |
32 |
| - - { rust: stable-i686-msvc, os: windows-latest, experimental: true } |
33 |
| - - { rust: beta, os: ubuntu-latest, experimental: true } |
34 |
| - - { rust: nightly, os: ubuntu-latest, experimental: true } |
| 28 | + - name: linux-amd64 |
| 29 | + runner: ubuntu-latest |
| 30 | + target: x86_64-unknown-linux-gnu |
| 31 | + experimental: false |
| 32 | + toolchain: stable |
| 33 | + - name: win-amd64 |
| 34 | + runner: windows-latest |
| 35 | + target: x86_64-pc-windows-msvc |
| 36 | + experimental: false |
| 37 | + toolchain: stable |
| 38 | + - name: macos-amd64 |
| 39 | + runner: macos-latest |
| 40 | + target: x86_64-apple-darwin |
| 41 | + experimental: false |
| 42 | + toolchain: stable |
| 43 | + - name: macos-arm64 |
| 44 | + runner: macos-latest |
| 45 | + target: aarch64-apple-darwin |
| 46 | + experimental: false |
| 47 | + toolchain: stable |
| 48 | + - name: linux-amd64 |
| 49 | + runner: ubuntu-latest |
| 50 | + target: x86_64-unknown-linux-gnu |
| 51 | + experimental: true |
| 52 | + toolchain: beta |
| 53 | + - name: linux-amd64 |
| 54 | + runner: ubuntu-latest |
| 55 | + target: x86_64-unknown-linux-gnu |
| 56 | + experimental: true |
| 57 | + toolchain: nightly |
35 | 58 | steps:
|
36 |
| - - uses: actions/checkout@v4 |
37 |
| - - uses: hecrj/setup-rust-action@v2 |
| 59 | + - name: Checkout |
| 60 | + uses: actions/checkout@v4 |
| 61 | + - name: Rust toolchain |
| 62 | + uses: dtolnay/rust-toolchain@master |
38 | 63 | with:
|
39 |
| - rust-version: ${{ matrix.rust }} |
40 |
| - |
| 64 | + toolchain: "${{ matrix.toolchain }}" |
| 65 | + targets: "${{ matrix.target }}" |
41 | 66 | - run: cargo build --verbose --all
|
42 | 67 | - run: cargo build --release
|
43 | 68 | - run: cargo test --verbose --all -- --nocapture
|
|
55 | 80 | RUSTFLAGS: -Dwarnings
|
56 | 81 | steps:
|
57 | 82 | - uses: actions/checkout@v4
|
58 |
| - - uses: hecrj/setup-rust-action@v2 |
| 83 | + - uses: dtolnay/rust-toolchain@stable |
59 | 84 | with:
|
60 | 85 | components: clippy
|
61 | 86 | - run: cargo clippy --workspace --all-targets --verbose
|
|
67 | 92 | runs-on: ubuntu-latest
|
68 | 93 | steps:
|
69 | 94 | - uses: actions/checkout@v4
|
70 |
| - - uses: hecrj/setup-rust-action@v2 |
| 95 | + - uses: dtolnay/rust-toolchain@stable |
71 | 96 | with:
|
72 | 97 | components: rustfmt
|
73 | 98 | - run: cargo fmt --all -- --check
|
|
0 commit comments