Skip to content

Commit 97481cb

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 97481cb

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/rust.yml

+4-10
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
- name: "Checkout repo"
1717
uses: actions/checkout@v4
1818
- name: "Install ${{ matrix.rust }} toolchain"
19-
uses: actions-rs/toolchain@v1
19+
# https://github.com/dtolnay/rust-toolchain?tab=readme-ov-file#inputs
20+
uses: dtolnay/rust-toolchain@master
2021
with:
2122
toolchain: ${{ matrix.rust }}
22-
override: true
2323
- name: "Use cache"
2424
uses: Swatinem/rust-cache@v2
2525
- name: Run tests
@@ -31,10 +31,7 @@ jobs:
3131
- name: "Checkout repo"
3232
uses: actions/checkout@v4
3333
- name: "Install nightly toolchain"
34-
uses: actions-rs/toolchain@v1
35-
with:
36-
toolchain: nightly
37-
override: true
34+
uses: actions-rs/toolchain@nightly
3835
- name: "Use cache"
3936
uses: Swatinem/rust-cache@v2
4037
- run: rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu
@@ -47,10 +44,7 @@ jobs:
4744
- name: "Checkout repo"
4845
uses: actions/checkout@v4
4946
- name: "Install nightly toolchain"
50-
uses: actions-rs/toolchain@v1
51-
with:
52-
toolchain: nightly
53-
override: true
47+
uses: actions-rs/toolchain@nightly
5448
- name: "Use cache"
5549
uses: Swatinem/rust-cache@v2
5650
- name: "Install clippy"

0 commit comments

Comments
 (0)