@@ -47,14 +47,10 @@ jobs:
47
47
48
48
steps :
49
49
- name : Checkout repository
50
- uses : actions/checkout@v2
50
+ uses : actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
51
51
52
52
- name : Install Rust Toolchain
53
- uses : actions-rs/toolchain@v1
54
- with :
55
- override : true
56
- profile : minimal
57
- toolchain : ${{ matrix.channel }}-${{ matrix.rust_target }}
53
+ run : rustup update ${{ matrix.channel }}-${{ matrix.rust_target }} && rustup default ${{ matrix.channel }}-${{ matrix.rust_target }}
58
54
59
55
- name : Install cargo-hack
60
56
run : cargo install cargo-hack
76
72
runs-on : ubuntu-20.04
77
73
steps :
78
74
- name : Checkout sources
79
- uses : actions/checkout@v2
80
-
81
- - name : Install Rust toolchain
82
- uses : actions-rs/toolchain@v1
83
- with :
84
- profile : minimal
85
- toolchain : stable
86
- override : true
75
+ uses : actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
87
76
88
77
- name : All features
89
78
run : cargo test --all-features
@@ -93,24 +82,20 @@ jobs:
93
82
runs-on : ubuntu-20.04
94
83
steps :
95
84
- name : Checkout sources
96
- uses : actions/checkout@v2
85
+ uses : actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
97
86
98
87
- name : Install Rust toolchain
99
- uses : actions-rs/toolchain@v1
100
- with :
101
- profile : minimal
102
- toolchain : 1.57.0
103
- override : true
88
+ run : rustup update 1.57.0
104
89
105
90
- name : Version features
106
- run : cargo test --features "$VERSION_FEATURES"
91
+ run : cargo +1.57.0 test --features "$VERSION_FEATURES"
107
92
108
93
wasm :
109
94
name : Tests / WebAssembly
110
95
runs-on : ubuntu-latest
111
96
steps :
112
97
- name : Checkout sources
113
- uses : actions/checkout@v2
98
+ uses : actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
114
99
115
100
- name : Install
116
101
run : curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
@@ -129,13 +114,7 @@ jobs:
129
114
runs-on : ubuntu-latest
130
115
steps :
131
116
- name : Checkout sources
132
- uses : actions/checkout@v2
133
- - name : Install Rust toolchain
134
- uses : actions-rs/toolchain@v1
135
- with :
136
- profile : minimal
137
- toolchain : stable
138
- override : true
117
+ uses : actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
139
118
140
119
- name : Install Cross
141
120
run : cargo install cross
@@ -148,27 +127,16 @@ jobs:
148
127
runs-on : ubuntu-latest
149
128
steps :
150
129
- name : Checkout sources
151
- uses : actions/checkout@v2
130
+ uses : actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
152
131
153
132
- name : Install Rust toolchain
154
- uses : actions-rs/toolchain@v1
155
- with :
156
- profile : minimal
157
- toolchain : nightly
158
- target : thumbv6m-none-eabi
159
- override : true
133
+ run : rustup update nightly && rustup target add --toolchain nightly thumbv6m-none-eabi
160
134
161
135
- name : No features
162
- uses : actions-rs/cargo@v1
163
- with :
164
- command : build
165
- args : -Z avoid-dev-deps --target thumbv6m-none-eabi --no-default-features
136
+ run : cargo +nightly build -Z avoid-dev-deps --target thumbv6m-none-eabi --no-default-features
166
137
167
138
- name : Version features
168
- uses : actions-rs/cargo@v1
169
- with :
170
- command : build
171
- args : -Z avoid-dev-deps --target thumbv6m-none-eabi --no-default-features --features "v1 v3 v5 v6 serde"
139
+ run : cargo +nightly build -Z avoid-dev-deps --target thumbv6m-none-eabi --no-default-features --features "v1 v3 v5 v6 serde"
172
140
173
141
nodeps :
174
142
name : Build / No deps
@@ -177,14 +145,10 @@ jobs:
177
145
RUSTFLAGS : " --cfg uuid_unstable"
178
146
steps :
179
147
- name : Checkout sources
180
- uses : actions/checkout@v2
148
+ uses : actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
181
149
182
150
- name : Install Rust toolchain
183
- uses : actions-rs/toolchain@v1
184
- with :
185
- profile : minimal
186
- toolchain : nightly
187
- override : true
151
+ run : rustup update nightly && rustup default nightly
188
152
189
153
- name : Install cargo-hack
190
154
run : cargo install cargo-hack
0 commit comments