1- on : [pull_request]
1+ on : [push, pull_request]
22
33name : Continuous Integration
44
55jobs :
6- Test :
7- name : Test Suite
6+ Stable :
7+ name : Test - stable toolchain
88 runs-on : ubuntu-latest
99 strategy :
10- matrix :
11- rust :
12- - 1.41.1
13- - stable
14- - nightly
10+ fail-fast : false
1511 steps :
1612 - name : Checkout Crate
17- - uses : actions/checkout@v2
13+ uses : actions/checkout@v3
1814 - 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
2620 run : ./contrib/test.sh
2721
28- fmt :
29- name : Rustfmt
22+ Beta :
23+ name : Test - beta toolchain
3024 runs-on : ubuntu-latest
25+ strategy :
26+ fail-fast : false
3127 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
4334
44- clippy :
45- name : Clippy
35+ Nightly :
36+ name : Test - nightly toolchain
4637 runs-on : ubuntu-latest
4738 strategy :
48- matrix :
49- rust :
50- - stable
39+ fail-fast : false
5140 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+ uses : dtolnay/rust-toolchain@1.41.1
60+ - name : Running test script
61+ run : ./contrib/test.sh
6362
6463 EmbeddedWithAlloc :
6564 name : no_std with alloc
6665 runs-on : ubuntu-latest
66+ strategy :
67+ fail-fast : false
6768 steps :
68- - name : Checkout
69- uses : actions/checkout@v2
69+ - name : Checkout Crate
70+ uses : actions/checkout@v3
7071 - name : Set up QEMU
7172 run : sudo apt update && sudo apt install -y qemu-system-arm gcc-arm-none-eabi
7273 - name : Checkout Toolchain
73- uses : actions-rs/ toolchain@v1
74+ uses : dtolnay/rust- toolchain@nightly
7475 with :
75- profile : minimal
76- toolchain : nightly
77- override : true
78- components : rust-src
79- target : thumbv7m-none-eabi
76+ targets : thumbv7m-none-eabi
8077 - name : Run
8178 env :
8279 RUSTFLAGS : " -C link-arg=-Tlink.x"
@@ -87,14 +84,11 @@ jobs:
8784 name : no_std no alloc
8885 runs-on : ubuntu-latest
8986 strategy :
87+ fail-fast : false
9088 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