|
1 |
| -on: [pull_request] |
| 1 | +on: [push, pull_request] |
2 | 2 |
|
3 | 3 | name: Continuous Integration
|
4 | 4 |
|
5 | 5 | jobs:
|
6 |
| - Test: |
7 |
| - name: Test Suite |
| 6 | + Stable: |
| 7 | + name: Test - stable toolchain |
8 | 8 | runs-on: ubuntu-latest
|
9 | 9 | strategy:
|
10 |
| - matrix: |
11 |
| - rust: |
12 |
| - - 1.41.1 |
13 |
| - - stable |
14 |
| - - nightly |
| 10 | + fail-fast: false |
15 | 11 | steps:
|
16 | 12 | - name: Checkout Crate
|
17 |
| - - uses: actions/checkout@v2 |
| 13 | + uses: actions/checkout@v3 |
18 | 14 | - name: Checkout Toolchain
|
19 |
| - - uses: actions-rs/toolchain@v1 |
20 |
| - with: |
21 |
| - profile: minimal |
22 |
| - toolchain: ${{ matrix.rust }} |
23 |
| - override: true |
24 |
| - - name: Run Test Script |
25 |
| - env: ${{ matrix.rust }} |
| 15 | + # https://github.com/dtolnay/rust-toolchain |
| 16 | + uses: dtolnay/rust-toolchain@stable |
| 17 | + - name: Running test script |
| 18 | + env: |
| 19 | + DO_LINT: true |
26 | 20 | run: ./contrib/test.sh
|
27 | 21 |
|
28 |
| - fmt: |
29 |
| - name: Rustfmt |
| 22 | + Beta: |
| 23 | + name: Test - beta toolchain |
30 | 24 | runs-on: ubuntu-latest
|
| 25 | + strategy: |
| 26 | + fail-fast: false |
31 | 27 | steps:
|
32 |
| - - uses: actions/checkout@v2 |
33 |
| - - uses: actions-rs/toolchain@v1 |
34 |
| - with: |
35 |
| - profile: minimal |
36 |
| - toolchain: nightly |
37 |
| - override: true |
38 |
| - - run: rustup component add rustfmt |
39 |
| - - uses: actions-rs/cargo@v1 |
40 |
| - with: |
41 |
| - command: fmt |
42 |
| - args: --all -- --check |
| 28 | + - name: Checkout Crate |
| 29 | + uses: actions/checkout@v3 |
| 30 | + - name: Checkout Toolchain |
| 31 | + uses: dtolnay/rust-toolchain@beta |
| 32 | + - name: Running test script |
| 33 | + run: ./contrib/test.sh |
43 | 34 |
|
44 |
| - clippy: |
45 |
| - name: Clippy |
| 35 | + Nightly: |
| 36 | + name: Test - nightly toolchain |
46 | 37 | runs-on: ubuntu-latest
|
47 | 38 | strategy:
|
48 |
| - matrix: |
49 |
| - rust: |
50 |
| - - stable |
| 39 | + fail-fast: false |
51 | 40 | steps:
|
52 |
| - - uses: actions/checkout@v2 |
53 |
| - - uses: actions-rs/toolchain@v1 |
54 |
| - with: |
55 |
| - profile: minimal |
56 |
| - toolchain: ${{ matrix.rust }} |
57 |
| - override: true |
58 |
| - - run: rustup component add clippy |
59 |
| - - uses: actions-rs/cargo@v1 |
60 |
| - with: |
61 |
| - command: clippy |
62 |
| - args: -- -D warnings |
| 41 | + - name: Checkout Crate |
| 42 | + uses: actions/checkout@v3 |
| 43 | + - name: Checkout Toolchain |
| 44 | + uses: dtolnay/rust-toolchain@nightly |
| 45 | + - name: Running test script |
| 46 | + env: |
| 47 | + DO_FMT: true |
| 48 | + run: ./contrib/test.sh |
| 49 | + |
| 50 | + MSRV: |
| 51 | + name: Test - 1.41.1 toolchain |
| 52 | + runs-on: ubuntu-latest |
| 53 | + strategy: |
| 54 | + fail-fast: false |
| 55 | + steps: |
| 56 | + - name: Checkout Crate |
| 57 | + uses: actions/checkout@v3 |
| 58 | + - name: Checkout Toolchain |
| 59 | + |
| 60 | + - name: Running test script |
| 61 | + run: ./contrib/test.sh |
63 | 62 |
|
64 | 63 | EmbeddedWithAlloc:
|
65 | 64 | name: no_std with alloc
|
66 | 65 | runs-on: ubuntu-latest
|
| 66 | + strategy: |
| 67 | + fail-fast: false |
67 | 68 | steps:
|
68 | 69 | - name: Checkout
|
69 | 70 | uses: actions/checkout@v2
|
|
87 | 88 | name: no_std no alloc
|
88 | 89 | runs-on: ubuntu-latest
|
89 | 90 | strategy:
|
| 91 | + fail-fast: false |
90 | 92 | steps:
|
91 | 93 | - uses: actions/checkout@v2
|
92 | 94 | - uses: actions-rs/toolchain@v1
|
|
0 commit comments