Skip to content

Commit

Permalink
Upgrade rust toolchain installer in github actions
Browse files Browse the repository at this point in the history
actions-rs is no longer maintained and rust-bitcoin
is using dtolnay/rust-toolchain in their CI.
  • Loading branch information
spacebear21 committed Nov 11, 2024
1 parent 02de718 commit a79b379
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ jobs:
- name: "Checkout repo"
uses: actions/checkout@v4
- name: "Install ${{ matrix.rust }} toolchain"
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
uses: dtolnay/rust-toolchain@${{ matrix.rust }}
- name: "Use cache"
uses: Swatinem/rust-cache@v2
- name: Run tests
Expand All @@ -31,10 +28,7 @@ jobs:
- name: "Checkout repo"
uses: actions/checkout@v4
- name: "Install nightly toolchain"
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
uses: actions-rs/toolchain@nightly
- name: "Use cache"
uses: Swatinem/rust-cache@v2
- run: rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu
Expand All @@ -47,10 +41,7 @@ jobs:
- name: "Checkout repo"
uses: actions/checkout@v4
- name: "Install nightly toolchain"
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
uses: actions-rs/toolchain@nightly
- name: "Use cache"
uses: Swatinem/rust-cache@v2
- name: "Install clippy"
Expand Down

0 comments on commit a79b379

Please sign in to comment.