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
- - name : Checkout
69
- uses : actions/checkout@v2
69
+ - name : Checkout Crate
70
+ uses : actions/checkout@v3
70
71
- name : Set up QEMU
71
72
run : sudo apt update && sudo apt install -y qemu-system-arm gcc-arm-none-eabi
72
73
- name : Checkout Toolchain
73
- uses : actions-rs/ toolchain@v1
74
+ uses : dtolnay/rust- toolchain@nightly
74
75
with :
75
- profile : minimal
76
- toolchain : nightly
77
- override : true
78
- components : rust-src
79
- target : thumbv7m-none-eabi
76
+ targets : thumbv7m-none-eabi
80
77
- name : Run
81
78
env :
82
79
RUSTFLAGS : " -C link-arg=-Tlink.x"
@@ -87,14 +84,11 @@ jobs:
87
84
name : no_std no alloc
88
85
runs-on : ubuntu-latest
89
86
strategy :
87
+ fail-fast : false
90
88
steps :
91
- - uses : actions/checkout@v2
92
- - uses : actions-rs/toolchain@v1
93
- with :
94
- profile : minimal
95
- toolchain : stable
96
- override : true
97
- - uses : actions-rs/cargo@v1
98
- with :
99
- command : rustc
100
- args : -- -C link-arg=-nostartfiles
89
+ - name : Checkout Crate
90
+ uses : actions/checkout@v3
91
+ - name : Checkout Toolchain
92
+ uses : dtolnay/rust-toolchain@stable
93
+ - name : Run
94
+ run : cd embedded/no-allocator && cargo rustc -- -C link-arg=-nostartfiles
0 commit comments