Skip to content

Commit e53adc1

Browse files
author
dnnanuti
committed
Update Rust setup actions
1 parent e71d5b7 commit e53adc1

File tree

2 files changed

+5
-24
lines changed

2 files changed

+5
-24
lines changed

.github/workflows/python-checks.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,12 @@ jobs:
2323
uses: actions/checkout@v4
2424

2525
- name: Set up stable Rust
26-
uses: actions-rs/toolchain@v1
27-
with:
28-
toolchain: stable
29-
override: true
26+
uses: dtolnay/rust-toolchain@stable
3027

3128
- name: Cargo cache
3229
uses: actions/cache@v3
3330
with:
3431
path: |
35-
~/.cargo/bin/
3632
~/.cargo/registry/index/
3733
~/.cargo/registry/cache/
3834
~/.cargo/git/db/
@@ -75,16 +71,12 @@ jobs:
7571
uses: actions/checkout@v4
7672

7773
- name: Set up stable Rust
78-
uses: actions-rs/toolchain@v1
79-
with:
80-
toolchain: stable
81-
override: true
74+
uses: dtolnay/rust-toolchain@stable
8275

8376
- name: Cargo cache
8477
uses: actions/cache@v3
8578
with:
8679
path: |
87-
~/.cargo/bin/
8880
~/.cargo/registry/index/
8981
~/.cargo/registry/cache/
9082
~/.cargo/git/db/

.github/workflows/rust-checks.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ jobs:
2828
uses: actions/checkout@v4
2929

3030
- name: Set up stable Rust
31-
uses: actions-rs/toolchain@v1
32-
with:
33-
toolchain: stable
34-
override: true
31+
uses: dtolnay/rust-toolchain@stable
3532

3633
- name: Run cargo deny
3734
uses: EmbarkStudios/cargo-deny-action@v1
@@ -47,17 +44,12 @@ jobs:
4744
uses: actions/checkout@v4
4845

4946
- name: Set up stable Rust
50-
uses: actions-rs/toolchain@v1
51-
with:
52-
toolchain: stable
53-
components: clippy
54-
override: true
47+
uses: dtolnay/rust-toolchain@stable
5548

5649
- name: Cargo cache
5750
uses: actions/cache@v3
5851
with:
5952
path: |
60-
~/.cargo/bin/
6153
~/.cargo/registry/index/
6254
~/.cargo/registry/cache/
6355
~/.cargo/git/db/
@@ -78,10 +70,7 @@ jobs:
7870
uses: actions/checkout@v4
7971

8072
- name: Set up stable Rust
81-
uses: actions-rs/toolchain@v1
82-
with:
83-
toolchain: stable
84-
override: true
73+
uses: dtolnay/rust-toolchain@stable
8574

8675
- name: Build Rust tests
8776
run: cargo test --no-default-features --no-run --manifest-path s3torchconnectorclient/Cargo.toml

0 commit comments

Comments
 (0)