@@ -14,85 +14,45 @@ jobs:
14
14
matrix :
15
15
rust : [1.8.0, 1.15.0, 1.20.0, 1.26.0, 1.31.0, stable, beta, nightly]
16
16
steps :
17
- - name : Rust install
18
- uses : actions-rs/ toolchain@v1
17
+ - uses : actions/checkout@v3
18
+ - uses : dtolnay/rust- toolchain@master
19
19
with :
20
20
toolchain : ${{ matrix.rust }}
21
- profile : minimal
22
- override : true
23
- - name : Checkout
24
- uses : actions/checkout@v2
25
- - name : Build
26
- uses : actions-rs/cargo@v1
27
- with :
28
- command : build
29
- - name : Test
30
- run : ./ci/test_full.sh
21
+ - run : cargo build
22
+ - run : ./ci/test_full.sh
31
23
32
24
# i586 presents floating point challenges for lack of SSE/SSE2
33
25
i586 :
34
26
name : Test (i586)
35
27
runs-on : ubuntu-latest
36
28
steps :
37
- - name : System install
38
- run : |
29
+ - run : |
39
30
sudo apt-get update
40
31
sudo apt-get install gcc-multilib
41
- - name : Rust install
42
- uses : actions-rs/ toolchain@v1
32
+ - uses : actions/checkout@v3
33
+ - uses : dtolnay/rust- toolchain@stable
43
34
with :
44
- toolchain : stable
45
- profile : minimal
46
- override : true
47
35
target : i586-unknown-linux-gnu
48
- - name : Checkout
49
- uses : actions/checkout@v1
50
- - name : Test
51
- uses : actions-rs/cargo@v1
52
- with :
53
- command : test
54
- args : --target i586-unknown-linux-gnu --all-features
36
+ - run : cargo test --target i586-unknown-linux-gnu --all-features
55
37
56
38
# try a target that doesn't have std at all
57
39
no_std :
58
40
name : No Std
59
41
runs-on : ubuntu-latest
60
42
steps :
61
- - name : Rust install
62
- uses : actions-rs/ toolchain@v1
43
+ - uses : actions/checkout@v3
44
+ - uses : dtolnay/rust- toolchain@stable
63
45
with :
64
- toolchain : stable
65
- profile : minimal
66
- override : true
67
46
target : thumbv6m-none-eabi
68
- - name : Checkout
69
- uses : actions/checkout@v1
70
- - name : Build
71
- uses : actions-rs/cargo@v1
72
- with :
73
- command : build
74
- args : --target thumbv6m-none-eabi --no-default-features --features i128
75
- - name : Build (libm)
76
- uses : actions-rs/cargo@v1
77
- with :
78
- command : build
79
- args : --target thumbv6m-none-eabi --no-default-features --features libm
47
+ - run : cargo build --target thumbv6m-none-eabi --no-default-features --features i128
48
+ - run : cargo build --target thumbv6m-none-eabi --no-default-features --features libm
80
49
81
50
fmt :
82
51
name : Format
83
52
runs-on : ubuntu-latest
84
53
steps :
85
- - name : Rust install
86
- uses : actions-rs/ toolchain@v1
54
+ - uses : actions/checkout@v3
55
+ - uses : dtolnay/rust- toolchain@1.62.0
87
56
with :
88
- toolchain : 1.42.0
89
- profile : minimal
90
- override : true
91
57
components : rustfmt
92
- - name : Checkout
93
- uses : actions/checkout@v2
94
- - name : Check formatting
95
- uses : actions-rs/cargo@v1
96
- with :
97
- command : fmt
98
- args : --all -- --check
58
+ - run : cargo fmt --all --check
0 commit comments