@@ -26,24 +26,20 @@ jobs:
26
26
- " x86_64-unknown-linux-musl"
27
27
steps :
28
28
- uses : actions/checkout@v3
29
- - uses : actions-rs/ toolchain@v1
29
+ - uses : dtolnay/rust- toolchain@stable
30
30
with :
31
- toolchain : stable
32
- target : ${{ matrix.target }}
31
+ targets : ${{ matrix.target }}
33
32
- run : cargo build --target ${{ matrix.target }}
34
33
35
34
macos_build :
36
35
name : Mac Build
37
- runs-on : macos-10.15
36
+ runs-on : macos-12
38
37
env :
39
38
RUSTFLAGS : " -D warnings"
40
39
steps :
41
40
- uses : actions/checkout@v3
42
- - uses : actions-rs/toolchain@v1
43
- with :
44
- toolchain : stable
45
- target : x86_64-apple-darwin
46
- - run : cargo build --target x86_64-apple-darwin
41
+ - uses : dtolnay/rust-toolchain@stable
42
+ - run : cargo build
47
43
48
44
windows_build :
49
45
name : Windows Build
52
48
RUSTFLAGS : " -D warnings"
53
49
steps :
54
50
- uses : actions/checkout@v3
55
- - uses : actions-rs/toolchain@v1
56
- with :
57
- toolchain : stable
58
- target : x86_64-pc-windows-msvc
51
+ - uses : dtolnay/rust-toolchain@stable
59
52
- run : cargo build
60
53
61
54
linux_test :
@@ -68,24 +61,20 @@ jobs:
68
61
target : ["x86_64-unknown-linux-musl", "x86_64-unknown-linux-gnu"]
69
62
steps :
70
63
- uses : actions/checkout@v3
71
- - uses : actions-rs/ toolchain@v1
64
+ - uses : dtolnay/rust- toolchain@stable
72
65
with :
73
- toolchain : stable
74
- target : ${{ matrix.target }}
66
+ targets : ${{ matrix.target }}
75
67
- run : cargo test --all-features --target ${{ matrix.target }}
76
68
77
69
macos_test :
78
70
name : Mac Test
79
- runs-on : macos-10.15
71
+ runs-on : macos-12
80
72
env :
81
73
RUSTFLAGS : " -D warnings"
82
74
steps :
83
75
- uses : actions/checkout@v3
84
- - uses : actions-rs/toolchain@v1
85
- with :
86
- toolchain : stable
87
- target : x86_64-apple-darwin
88
- - run : cargo test --target x86_64-apple-darwin
76
+ - uses : dtolnay/rust-toolchain@stable
77
+ - run : cargo test
89
78
90
79
windows_test :
91
80
name : Windows Unit Tests
@@ -94,25 +83,18 @@ jobs:
94
83
RUSTFLAGS : " -D warnings"
95
84
steps :
96
85
- uses : actions/checkout@v3
97
- - uses : actions-rs/toolchain@v1
98
- with :
99
- toolchain : stable
100
- target : x86_64-pc-windows-msvc
86
+ - uses : dtolnay/rust-toolchain@stable
101
87
- run : cargo test
102
88
103
89
clippy_check :
104
90
name : Clippy
105
91
runs-on : ubuntu-latest
106
92
steps :
107
93
- uses : actions/checkout@v3
108
- - uses : actions-rs/ toolchain@v1
94
+ - uses : dtolnay/rust- toolchain@stable
109
95
with :
110
- toolchain : stable
111
96
components : clippy
112
- - uses : actions-rs/clippy-check@v1
113
- with :
114
- token : ${{ secrets.GITHUB_TOKEN }}
115
- args : --all-features
97
+ - run : cargo clippy --all-features -- --deny warnings
116
98
117
99
docs :
118
100
name : docs
@@ -121,21 +103,18 @@ jobs:
121
103
RUSTDOCFLAGS : " -D warnings"
122
104
steps :
123
105
- uses : actions/checkout@v3
124
- - uses : actions-rs/toolchain@v1
125
- with :
126
- toolchain : stable
106
+ - uses : dtolnay/rust-toolchain@stable
127
107
- run : cargo doc
128
108
129
109
format_check :
130
110
name : Rust Format
131
111
runs-on : ubuntu-latest
132
112
steps :
133
113
- uses : actions/checkout@v3
134
- - uses : actions-rs/ toolchain@v1
114
+ - uses : dtolnay/rust- toolchain@nightly
135
115
with :
136
- toolchain : stable
137
116
components : rustfmt
138
- - run : cargo fmt -- --check
117
+ - run : cargo +nightly fmt -- --check
139
118
140
119
release :
141
120
name : crates.io release
@@ -153,9 +132,7 @@ jobs:
153
132
runs-on : ubuntu-latest
154
133
steps :
155
134
- uses : actions/checkout@v3
156
- - uses : actions-rs/toolchain@v1
157
- with :
158
- toolchain : stable
135
+ - uses : dtolnay/rust-toolchain@stable
159
136
- run : cargo publish --token ${CRATES_IO_TOKEN}
160
137
env :
161
138
CRATES_IO_TOKEN : ${{ secrets.CRATES_IO_TOKEN }}
0 commit comments