From 4213283de296c874ad5a0a0bdd2ad493048191fc Mon Sep 17 00:00:00 2001 From: Pi-Cla Date: Sat, 4 May 2024 15:43:10 -0600 Subject: [PATCH] Switch to rust-toolchain --- .github/workflows/ci.yaml | 24 +++++------------------- .github/workflows/release-nightly.yaml | 7 +++---- .github/workflows/release.yaml | 5 +---- 3 files changed, 9 insertions(+), 27 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3520703d9b3..0af068f8087 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -81,13 +81,10 @@ jobs: if: ${{ matrix.target == 'x86_64-unknown-linux-musl'}} - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@v1 with: toolchain: ${{ matrix.toolchain }} target: ${{ matrix.target }} - override: true - default: true - profile: minimal - name: Install Erlang (non-macos) uses: erlef/setup-beam@v1 @@ -237,12 +234,10 @@ jobs: uses: actions/checkout@v4 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@v1 with: toolchain: stable target: wasm32-unknown-unknown - profile: minimal - override: true - uses: actions/setup-node@v4 with: @@ -264,12 +259,9 @@ jobs: uses: actions/checkout@v4 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@v1 with: toolchain: stable - override: true - default: true - profile: minimal components: rustfmt - run: cargo fmt --all -- --check @@ -283,12 +275,9 @@ jobs: uses: actions/checkout@v4 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@v1 with: toolchain: stable - override: true - default: true - profile: minimal - name: Install cargo-deny run: | @@ -309,12 +298,9 @@ jobs: uses: actions/checkout@v4 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@v1 with: toolchain: stable - override: true - default: true - profile: minimal components: clippy - name: Handle Rust dependencies caching diff --git a/.github/workflows/release-nightly.yaml b/.github/workflows/release-nightly.yaml index f2b0727d213..2a5dbf96537 100644 --- a/.github/workflows/release-nightly.yaml +++ b/.github/workflows/release-nightly.yaml @@ -85,13 +85,12 @@ jobs: ./bin/add-nightly-suffix-to-versions.sh - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@v1 with: toolchain: ${{ matrix.toolchain }} target: ${{ matrix.target }} - override: true - default: true - profile: minimal + + - name: Handle Rust dependencies caching uses: Swatinem/rust-cache@v2 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d5c90de846c..35028fa0984 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -42,13 +42,10 @@ jobs: uses: actions/checkout@v4 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@v1 with: toolchain: ${{ matrix.toolchain }} target: ${{ matrix.target }} - override: true - default: true - profile: minimal - name: Handle Rust dependencies caching uses: Swatinem/rust-cache@v2