chore: migrate away from unmaintained rust toolchain installer (#4465)

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>
pull/4772/head
Paul Balaji 4 weeks ago committed by GitHub
parent 39a9b20388
commit a028e16243
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      .github/workflows/agent-release-artifacts.yml
  2. 9
      .github/workflows/rust.yml
  3. 5
      .github/workflows/test.yml

@ -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 }}

@ -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:
@ -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

@ -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

Loading…
Cancel
Save