Skip to content

Commit b66e3c5

Browse files
authored
Merge pull request #2396 from tnull/2023-07-fix-github-actions
Update CI to remove deprecated actions
2 parents 6ebb6d1 + 98bef2a commit b66e3c5

File tree

1 file changed

+20
-32
lines changed

1 file changed

+20
-32
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,9 @@ jobs:
3737
- name: Checkout source code
3838
uses: actions/checkout@v3
3939
- 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 }}
4543
- name: Install no-std-check dependencies for ARM Embedded
4644
if: "matrix.platform == 'ubuntu-latest'"
4745
run: |
@@ -101,11 +99,9 @@ jobs:
10199
- name: Checkout source code
102100
uses: actions/checkout@v3
103101
- 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 }}
109105
- name: Cache routing graph snapshot
110106
id: cache-graph
111107
uses: actions/cache@v3
@@ -158,11 +154,9 @@ jobs:
158154
with:
159155
fetch-depth: 0
160156
- 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 }}
166160
- name: Fetch full tree and rebase on upstream
167161
run: |
168162
git remote add upstream https://github.com/lightningdevkit/rust-lightning
@@ -183,11 +177,9 @@ jobs:
183177
with:
184178
fetch-depth: 0
185179
- 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 }}
191183
- name: Run cargo check for release build.
192184
run: |
193185
cargo check --release
@@ -207,16 +199,14 @@ jobs:
207199
fuzz:
208200
runs-on: ubuntu-latest
209201
env:
210-
TOOLCHAIN: stable
202+
TOOLCHAIN: 1.58
211203
steps:
212204
- name: Checkout source code
213205
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 }}
220210
- name: Install dependencies for honggfuzz
221211
run: |
222212
sudo apt-get update
@@ -236,11 +226,9 @@ jobs:
236226
- name: Checkout source code
237227
uses: actions/checkout@v3
238228
- 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 }}
244232
- name: Install clippy
245233
run: |
246234
rustup component add clippy

0 commit comments

Comments
 (0)