Skip to content

Commit

Permalink
chore: migrate away from unmaintained rust toolchain installer (#4465)
Browse files Browse the repository at this point in the history
chore: migrate away from unmaintained rust toolchain installer

- previous toolchain action was archived almost a year ago
https://github.com/actions-rs/toolchain
- new action has 1k+ stars and sensible defaults
https://github.com/dtolnay/rust-toolchain
- uses minimal profile by default
- `stable` toolchain by default

Signed-off-by: pbio <10051819+paulbalaji@users.noreply.github.com>
  • Loading branch information
paulbalaji authored Oct 28, 2024
1 parent 39a9b20 commit a028e16
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/agent-release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,8 @@ jobs:
linker = "aarch64-linux-gnu-gcc"
EOF
- name: setup rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
profile: minimal
target: ${{ matrix.TARGET }}
- name: setup target
run: rustup target add ${{ matrix.TARGET }}
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
- uses: dtolnay/rust-toolchain@stable
- name: rust cache
uses: Swatinem/rust-cache@v2
with:
Expand Down Expand Up @@ -68,10 +65,8 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
profile: minimal
components: rustfmt, clippy
target: wasm32-unknown-unknown
- name: rust cache
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,7 @@ jobs:
uses: foundry-rs/foundry-toolchain@v1

- name: setup rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
uses: dtolnay/rust-toolchain@stable

- name: rust cache
uses: Swatinem/rust-cache@v2
Expand Down

0 comments on commit a028e16

Please sign in to comment.