Skip to content

Commit 7ede027

Browse files
committed
fix: correct Rust toolchain setup in E2E workflow
- Replace deprecated actions-rs/toolchain@v1 with dtolnay/rust-toolchain@stable - Update cache action to use modern Swatinem/rust-cache@v2 - Follow the same pattern used in torrust-tracker testing workflow
1 parent 9a35f36 commit 7ede027

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

.github/workflows/test-e2e.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,13 @@ jobs:
2020
- name: Checkout repository
2121
uses: actions/checkout@v4
2222

23-
- name: Install Rust toolchain
24-
uses: actions-rs/toolchain@v1
23+
- name: Setup Rust toolchain
24+
uses: dtolnay/rust-toolchain@stable
2525
with:
2626
toolchain: stable
27-
profile: minimal
28-
override: true
2927

3028
- name: Cache Rust dependencies
31-
uses: actions/cache@v3
32-
with:
33-
path: |
34-
~/.cargo/registry
35-
~/.cargo/git
36-
target
37-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
38-
restore-keys: |
39-
${{ runner.os }}-cargo-
29+
uses: Swatinem/rust-cache@v2
4030

4131
- name: Install and configure LXD
4232
run: |

project-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ containerd
44
cpus
55
dearmor
66
debootstrap
7+
dtolnay
78
ehthumbs
89
eprintln
910
getent

0 commit comments

Comments
 (0)