File tree Expand file tree Collapse file tree 3 files changed +21
-72
lines changed Expand file tree Collapse file tree 3 files changed +21
-72
lines changed Original file line number Diff line number Diff line change @@ -20,56 +20,30 @@ jobs:
20
20
nightly
21
21
]
22
22
steps :
23
- - name : Rust install
24
- uses : actions-rs/ toolchain@v1
23
+ - uses : actions/checkout@v3
24
+ - uses : dtolnay/rust- toolchain@master
25
25
with :
26
26
toolchain : ${{ matrix.rust }}
27
- profile : minimal
28
- override : true
29
- - name : Checkout
30
- uses : actions/checkout@v2
31
- - name : Build
32
- uses : actions-rs/cargo@v1
33
- with :
34
- command : build
35
- - name : Test
36
- run : ./ci/test_full.sh
27
+ - run : cargo build
28
+ - run : ./ci/test_full.sh
37
29
38
30
# try a target that doesn't have std at all, but does have alloc
39
31
no_std :
40
32
name : No Std
41
33
runs-on : ubuntu-latest
42
34
steps :
43
- - name : Rust install
44
- uses : actions-rs/ toolchain@v1
35
+ - uses : actions/checkout@v3
36
+ - uses : dtolnay/rust- toolchain@stable
45
37
with :
46
- toolchain : stable
47
- profile : minimal
48
- override : true
49
38
target : thumbv6m-none-eabi
50
- - name : Checkout
51
- uses : actions/checkout@v1
52
- - name : Build
53
- uses : actions-rs/cargo@v1
54
- with :
55
- command : build
56
- args : --target thumbv6m-none-eabi --no-default-features --features "libm rand serde"
39
+ - run : cargo build --target thumbv6m-none-eabi --no-default-features --features "libm rand serde"
57
40
58
41
fmt :
59
42
name : Format
60
43
runs-on : ubuntu-latest
61
44
steps :
62
- - name : Rust install
63
- uses : actions-rs/ toolchain@v1
45
+ - uses : actions/checkout@v3
46
+ - uses : dtolnay/rust- toolchain@1.62.0
64
47
with :
65
- toolchain : 1.42.0
66
- profile : minimal
67
- override : true
68
48
components : rustfmt
69
- - name : Checkout
70
- uses : actions/checkout@v2
71
- - name : Check formatting
72
- uses : actions-rs/cargo@v1
73
- with :
74
- command : fmt
75
- args : --all -- --check
49
+ - run : cargo fmt --all --check
Original file line number Diff line number Diff line change 15
15
matrix :
16
16
rust : [1.31.0, stable]
17
17
steps :
18
- - name : Rust install
19
- uses : actions-rs/ toolchain@v1
18
+ - uses : actions/checkout@v3
19
+ - uses : dtolnay/rust- toolchain@master
20
20
with :
21
21
toolchain : ${{ matrix.rust }}
22
- profile : minimal
23
- override : true
24
- - name : Checkout
25
- uses : actions/checkout@v2
26
- - name : Build
27
- uses : actions-rs/cargo@v1
28
- with :
29
- command : build
30
- - name : Test
31
- run : ./ci/test_full.sh
22
+ - run : cargo build
23
+ - run : ./ci/test_full.sh
Original file line number Diff line number Diff line change @@ -11,36 +11,19 @@ jobs:
11
11
matrix :
12
12
rust : [1.31.0, stable]
13
13
steps :
14
- - name : Rust install
15
- uses : actions-rs/ toolchain@v1
14
+ - uses : actions/checkout@v3
15
+ - uses : dtolnay/rust- toolchain@master
16
16
with :
17
17
toolchain : ${{ matrix.rust }}
18
- profile : minimal
19
- override : true
20
- - name : Checkout
21
- uses : actions/checkout@v2
22
- - name : Build
23
- uses : actions-rs/cargo@v1
24
- with :
25
- command : build
26
- - name : Test
27
- run : ./ci/test_full.sh
18
+ - run : cargo build
19
+ - run : ./ci/test_full.sh
28
20
29
21
fmt :
30
22
name : Format
31
23
runs-on : ubuntu-latest
32
24
steps :
33
- - name : Rust install
34
- uses : actions-rs/ toolchain@v1
25
+ - uses : actions/checkout@v3
26
+ - uses : dtolnay/rust- toolchain@1.62.0
35
27
with :
36
- toolchain : 1.42.0
37
- profile : minimal
38
- override : true
39
28
components : rustfmt
40
- - name : Checkout
41
- uses : actions/checkout@v2
42
- - name : Check formatting
43
- uses : actions-rs/cargo@v1
44
- with :
45
- command : fmt
46
- args : --all -- --check
29
+ - run : cargo fmt --all --check
You can’t perform that action at this time.
0 commit comments