@@ -4,44 +4,74 @@ name: Continuous integration
44
55jobs :
66 Tests :
7- name : Tests
7+ name : Test - stable toolchain
88 runs-on : ubuntu-latest
99 strategy :
1010 fail-fast : false
11- matrix :
12- rust :
13- - 1.48.0
14- - nightly
15- - beta
16- - stable
1711 steps :
1812 - name : Checkout Crate
19- uses : actions/checkout@v2
20- with :
21- submodules : true
13+ uses : actions/checkout@v3
2214 - name : Checkout Toolchain
23- uses : actions-rs/toolchain@v1
24- with :
25- profile : minimal
26- toolchain : ${{ matrix.rust }}
27- override : true
28- - name : Running Cargo test
29- run : cargo test
15+ # https://github.com/dtolnay/rust-toolchain
16+ uses : dtolnay/rust-toolchain@stable
17+ - name : Running test script
18+ env :
19+ DO_LINT : true
20+ DO_DOCS : true
21+ run : ./contrib/test.sh
22+
23+ Beta :
24+ name : Test - beta toolchain
25+ runs-on : ubuntu-latest
26+ strategy :
27+ fail-fast : false
28+ steps :
29+ - name : Checkout Crate
30+ uses : actions/checkout@v3
31+ - name : Checkout Toolchain
32+ uses : dtolnay/rust-toolchain@beta
33+ - name : Running test script
34+ run : ./contrib/test.sh
35+
36+ Nightly :
37+ name : Test - nightly toolchain
38+ runs-on : ubuntu-latest
39+ strategy :
40+ fail-fast : false
41+ steps :
42+ - name : Checkout Crate
43+ uses : actions/checkout@v3
44+ - name : Checkout Toolchain
45+ uses : dtolnay/rust-toolchain@nightly
46+ - name : Install src
47+ run : rustup component add rust-src
48+ - name : Running test script
49+ env :
50+ DO_FMT : true
51+ DO_DOCSRS : true
52+ run : ./contrib/test.sh
53+
54+ MSRV :
55+ name : Test - 1.48.0 toolchain
56+ runs-on : ubuntu-latest
57+ strategy :
58+ fail-fast : false
59+ steps :
60+ - name : Checkout Crate
61+ uses : actions/checkout@v3
62+ - name : Checkout Toolchain
63+ uses : dtolnay/rust-toolchain@1.48.0
64+ - name : Running test script
65+ run : ./contrib/test.sh
3066
3167 Arch32bit :
32- name : Tests 32-bit
68+ name : Test 32-bit version
3369 runs-on : ubuntu-latest
3470 steps :
3571 - name : Checkout Crate
36- uses : actions/checkout@v2
37- with :
38- submodules : true
72+ uses : actions/checkout@v3
3973 - name : Checkout Toolchain
40- uses : actions-rs/toolchain@v1
41- with :
42- profile : minimal
43- toolchain : stable
44- override : true
74+ uses : dtolnay/rust-toolchain@stable
4575 - name : Add architecture i386
4676 run : sudo dpkg --add-architecture i386
4777 - name : Install i686 gcc
@@ -56,67 +86,12 @@ jobs:
5686 runs-on : ubuntu-latest
5787 steps :
5888 - name : Checkout Crate
59- uses : actions/checkout@v2
60- with :
61- submodules : true
89+ uses : actions/checkout@v3
6290 - name : Checkout Toolchain
63- uses : actions-rs/toolchain@v1
64- with :
65- profile : minimal
66- toolchain : stable
67- override : true
91+ uses : dtolnay/rust-toolchain@stable
6892 - name : Install target
6993 run : rustup target add s390x-unknown-linux-gnu
7094 - name : install cross
7195 run : cargo install cross
7296 - name : run cross test
7397 run : cross test --target s390x-unknown-linux-gnu
74-
75- Docs :
76- name : Docs
77- runs-on : ubuntu-latest
78- steps :
79- - name : Checkout Crate
80- uses : actions/checkout@v2
81- with :
82- submodules : true
83- - name : Checkout Toolchain
84- uses : actions-rs/toolchain@v1
85- with :
86- profile : minimal
87- toolchain : stable
88- override : true
89- - name : Create Doc
90- run : cargo doc
91-
92- Clippy :
93- name : Clippy
94- runs-on : ubuntu-latest
95- steps :
96- - uses : actions/checkout@v2
97- - uses : actions-rs/toolchain@v1
98- with :
99- profile : minimal
100- toolchain : stable
101- override : true
102- - run : rustup component add clippy
103- - uses : actions-rs/cargo@v1
104- with :
105- command : clippy
106- args : --all-targets --all-features -- -D warnings
107-
108- Fmt :
109- name : Fmt
110- runs-on : ubuntu-latest
111- steps :
112- - uses : actions/checkout@v2
113- - uses : actions-rs/toolchain@v1
114- with :
115- profile : minimal
116- toolchain : nightly
117- override : true
118- - run : rustup component add rustfmt
119- - uses : actions-rs/cargo@v1
120- with :
121- command : fmt
122- args : --check
0 commit comments