37
37
- name : Checkout source code
38
38
uses : actions/checkout@v3
39
39
- name : Install Rust ${{ matrix.toolchain }} toolchain
40
- uses : actions-rs/toolchain@v1
41
- with :
42
- toolchain : ${{ matrix.toolchain }}
43
- override : true
44
- profile : minimal
40
+ run : |
41
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ matrix.toolchain }}
42
+ rustup override set ${{ matrix.toolchain }}
45
43
- name : Install no-std-check dependencies for ARM Embedded
46
44
if : " matrix.platform == 'ubuntu-latest'"
47
45
run : |
@@ -101,11 +99,9 @@ jobs:
101
99
- name : Checkout source code
102
100
uses : actions/checkout@v3
103
101
- name : Install Rust ${{ env.TOOLCHAIN }} toolchain
104
- uses : actions-rs/toolchain@v1
105
- with :
106
- toolchain : ${{ env.TOOLCHAIN }}
107
- override : true
108
- profile : minimal
102
+ run : |
103
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
104
+ rustup override set ${{ env.TOOLCHAIN }}
109
105
- name : Cache routing graph snapshot
110
106
id : cache-graph
111
107
uses : actions/cache@v3
@@ -158,11 +154,9 @@ jobs:
158
154
with :
159
155
fetch-depth : 0
160
156
- name : Install Rust ${{ env.TOOLCHAIN }} toolchain
161
- uses : actions-rs/toolchain@v1
162
- with :
163
- toolchain : ${{ env.TOOLCHAIN }}
164
- override : true
165
- profile : minimal
157
+ run : |
158
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
159
+ rustup override set ${{ env.TOOLCHAIN }}
166
160
- name : Fetch full tree and rebase on upstream
167
161
run : |
168
162
git remote add upstream https://github.com/lightningdevkit/rust-lightning
@@ -183,11 +177,9 @@ jobs:
183
177
with :
184
178
fetch-depth : 0
185
179
- name : Install Rust ${{ env.TOOLCHAIN }} toolchain
186
- uses : actions-rs/toolchain@v1
187
- with :
188
- toolchain : ${{ env.TOOLCHAIN }}
189
- override : true
190
- profile : minimal
180
+ run : |
181
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
182
+ rustup override set ${{ env.TOOLCHAIN }}
191
183
- name : Run cargo check for release build.
192
184
run : |
193
185
cargo check --release
@@ -207,16 +199,14 @@ jobs:
207
199
fuzz :
208
200
runs-on : ubuntu-latest
209
201
env :
210
- TOOLCHAIN : stable
202
+ TOOLCHAIN : 1.58
211
203
steps :
212
204
- name : Checkout source code
213
205
uses : actions/checkout@v3
214
- - name : Install Rust 1.58 toolchain
215
- uses : actions-rs/toolchain@v1
216
- with :
217
- toolchain : 1.58
218
- override : true
219
- profile : minimal
206
+ - name : Install Rust ${{ env.TOOLCHAIN }} toolchain
207
+ run : |
208
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
209
+ rustup override set ${{ env.TOOLCHAIN }}
220
210
- name : Install dependencies for honggfuzz
221
211
run : |
222
212
sudo apt-get update
@@ -236,11 +226,9 @@ jobs:
236
226
- name : Checkout source code
237
227
uses : actions/checkout@v3
238
228
- name : Install Rust ${{ env.TOOLCHAIN }} toolchain
239
- uses : actions-rs/toolchain@v1
240
- with :
241
- toolchain : ${{ env.TOOLCHAIN }}
242
- override : true
243
- profile : minimal
229
+ run : |
230
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
231
+ rustup override set ${{ env.TOOLCHAIN }}
244
232
- name : Install clippy
245
233
run : |
246
234
rustup component add clippy
0 commit comments