Skip to content

Commit a79b379

Browse files
committed
Upgrade rust toolchain installer in github actions
actions-rs is no longer maintained and rust-bitcoin is using dtolnay/rust-toolchain in their CI.
1 parent 02de718 commit a79b379

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

.github/workflows/rust.yml

+3-12
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ jobs:
1616
- name: "Checkout repo"
1717
uses: actions/checkout@v4
1818
- name: "Install ${{ matrix.rust }} toolchain"
19-
uses: actions-rs/toolchain@v1
20-
with:
21-
toolchain: ${{ matrix.rust }}
22-
override: true
19+
uses: dtolnay/rust-toolchain@${{ matrix.rust }}
2320
- name: "Use cache"
2421
uses: Swatinem/rust-cache@v2
2522
- name: Run tests
@@ -31,10 +28,7 @@ jobs:
3128
- name: "Checkout repo"
3229
uses: actions/checkout@v4
3330
- name: "Install nightly toolchain"
34-
uses: actions-rs/toolchain@v1
35-
with:
36-
toolchain: nightly
37-
override: true
31+
uses: actions-rs/toolchain@nightly
3832
- name: "Use cache"
3933
uses: Swatinem/rust-cache@v2
4034
- run: rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu
@@ -47,10 +41,7 @@ jobs:
4741
- name: "Checkout repo"
4842
uses: actions/checkout@v4
4943
- name: "Install nightly toolchain"
50-
uses: actions-rs/toolchain@v1
51-
with:
52-
toolchain: nightly
53-
override: true
44+
uses: actions-rs/toolchain@nightly
5445
- name: "Use cache"
5546
uses: Swatinem/rust-cache@v2
5647
- name: "Install clippy"

0 commit comments

Comments
 (0)