Skip to content

Commit 64ee2b2

Browse files
committed
ci: fix the toolchain actions
1 parent 0e21362 commit 64ee2b2

File tree

5 files changed

+50
-20
lines changed

5 files changed

+50
-20
lines changed

.github/workflows/benchmark.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ jobs:
2828
${{ github.job }}-Linux-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('**/Cargo.lock') }}
2929
${{ github.job }}-Linux-${{ hashFiles('rust-toolchain') }}-
3030
31-
- uses: dtolnay/rust-toolchain@stable
32-
with:
33-
components: clippy
31+
- name: Install Rust
32+
run: |
33+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/install-rustup
34+
chmod +x /tmp/install-rustup
35+
/tmp/install-rustup --default-toolchain $(cat rust-toolchain) -y
3436
3537
- name: Build pdu
3638
run: |

.github/workflows/clippy.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ jobs:
3535
${{ github.job }}-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('**/Cargo.lock') }}
3636
${{ github.job }}-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-
3737
38-
- uses: dtolnay/rust-toolchain@stable
39-
with:
40-
components: clippy
38+
- name: Install Rust
39+
run: |
40+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/install-rustup
41+
chmod +x /tmp/install-rustup
42+
/tmp/install-rustup --default-toolchain $(cat rust-toolchain) --component clippy -y
4143
4244
- name: Use clippy to lint code (dev)
4345
env:

.github/workflows/deploy.yaml

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v4
2424

25-
- uses: dtolnay/rust-toolchain@stable
26-
with:
27-
components: clippy, rustfmt
25+
- name: Install Rust
26+
run: |
27+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/install-rustup
28+
chmod +x /tmp/install-rustup
29+
/tmp/install-rustup --default-toolchain $(cat rust-toolchain) -y
2830
2931
- name: Test (dev)
3032
env:
@@ -63,7 +65,11 @@ jobs:
6365
steps:
6466
- uses: actions/checkout@v4
6567

66-
- uses: dtolnay/rust-toolchain@stable
68+
- name: Install Rust
69+
run: |
70+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/install-rustup
71+
chmod +x /tmp/install-rustup
72+
/tmp/install-rustup --default-toolchain $(cat rust-toolchain) -y
6773
6874
- name: Install compilation target
6975
run: rustup target add ${{ matrix.target }}
@@ -95,7 +101,11 @@ jobs:
95101
steps:
96102
- uses: actions/checkout@v4
97103

98-
- uses: dtolnay/rust-toolchain@stable
104+
- name: Install Rust
105+
run: |
106+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/install-rustup
107+
chmod +x /tmp/install-rustup
108+
/tmp/install-rustup --default-toolchain $(cat rust-toolchain) -y
99109
100110
- name: Install compilation target
101111
run: rustup target add ${{ matrix.target }}
@@ -127,7 +137,11 @@ jobs:
127137
steps:
128138
- uses: actions/checkout@v4
129139

130-
- uses: dtolnay/rust-toolchain@stable
140+
- name: Install Rust
141+
run: |
142+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/install-rustup
143+
chmod +x /tmp/install-rustup
144+
/tmp/install-rustup --default-toolchain $(cat rust-toolchain) -y
131145
132146
- name: Install compilation target
133147
run: rustup target add ${{ matrix.target }}
@@ -378,7 +392,11 @@ jobs:
378392
steps:
379393
- uses: actions/checkout@v4
380394

381-
- uses: dtolnay/rust-toolchain@stable
395+
- name: Install Rust
396+
run: |
397+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/install-rustup
398+
chmod +x /tmp/install-rustup
399+
/tmp/install-rustup --default-toolchain $(cat rust-toolchain) -y
382400
383401
- name: Login
384402
run: cargo login ${{ secrets.CRATE_AUTH_TOKEN }}
@@ -423,9 +441,11 @@ jobs:
423441
${{ github.job }}-Linux-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('**/Cargo.lock') }}
424442
${{ github.job }}-Linux-${{ hashFiles('rust-toolchain') }}-
425443
426-
- uses: dtolnay/rust-toolchain@stable
427-
with:
428-
components: clippy
444+
- name: Install Rust
445+
run: |
446+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/install-rustup
447+
chmod +x /tmp/install-rustup
448+
/tmp/install-rustup --default-toolchain $(cat rust-toolchain) -y
429449
430450
- name: Build pdu
431451
run: |

.github/workflows/fmt.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515

16-
- uses: dtolnay/rust-toolchain@stable
17-
with:
18-
components: rustfmt
16+
- name: Install Rust
17+
run: |
18+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/install-rustup
19+
chmod +x /tmp/install-rustup
20+
/tmp/install-rustup --default-toolchain $(cat rust-toolchain) --component rustfmt -y
1921
2022
- name: Check code formatting
2123
run: cargo fmt -- --check

.github/workflows/test.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ jobs:
3636
${{ github.job }}-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('**/Cargo.lock') }}
3737
${{ github.job }}-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-
3838
39-
- uses: dtolnay/rust-toolchain@stable
39+
- name: Install Rust
40+
run: |
41+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/install-rustup
42+
chmod +x /tmp/install-rustup
43+
/tmp/install-rustup --default-toolchain $(cat rust-toolchain) -y
4044
4145
- name: Test (dev)
4246
env:

0 commit comments

Comments
 (0)