Skip to content

Commit

Permalink
github actions: Use rustup to install toolchain
Browse files Browse the repository at this point in the history
Replace the actions-rs/toolchain ci script with direct calls to
the `rustup` tool. This is part of the default github actions
runner image, so it's one less dependency we need to track in
the repo. The actions-rs suite has also had an unresponsive
upstream for some years.
  • Loading branch information
rillian committed Oct 2, 2023
1 parent f14f04d commit da24927
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/nostd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ jobs:
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

- name: Toolchain
uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 # v1
with:
toolchain: ${{matrix.rust}}
run: rustup default ${{matrix.rust}}

- name: Cache
uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,9 @@ jobs:
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

- name: Toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
profile: minimal
components: clippy, rustfmt
toolchain: ${{matrix.rust}}
override: true
run: |
rustup default ${{matrix.rust}}
rustup component add clippy rustfmt
- name: Cache
uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0
Expand Down

0 comments on commit da24927

Please sign in to comment.