From 308abe981d62e9028b6f19a109e6bb2a590f9975 Mon Sep 17 00:00:00 2001 From: Thibault Martinez Date: Wed, 6 Sep 2023 11:05:34 +0200 Subject: [PATCH] CI: switch all rust toolchains to setup-rust --- .github/workflows/bindings-nodejs-publish.yml | 4 ++-- .github/workflows/bindings-wallet-covector-publish.yml | 4 ++-- .github/workflows/bindings-wasm-publish.yml | 4 ++-- .github/workflows/cli-publish.yml | 5 +++-- .github/workflows/private-tangle-tests.yml | 4 ++-- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/bindings-nodejs-publish.yml b/.github/workflows/bindings-nodejs-publish.yml index 7bec4952f8..3a5f76218b 100644 --- a/.github/workflows/bindings-nodejs-publish.yml +++ b/.github/workflows/bindings-nodejs-publish.yml @@ -88,8 +88,8 @@ jobs: with: python-version: "3.10" - - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable + - name: Set up Rust + uses: ./.github/actions/setup-rust # This step can be removed as soon as official Windows arm64 builds are published: # https://github.com/nodejs/build/issues/2450#issuecomment-705853342 diff --git a/.github/workflows/bindings-wallet-covector-publish.yml b/.github/workflows/bindings-wallet-covector-publish.yml index 429216b1d1..344ee9bbb7 100644 --- a/.github/workflows/bindings-wallet-covector-publish.yml +++ b/.github/workflows/bindings-wallet-covector-publish.yml @@ -89,8 +89,8 @@ jobs: with: python-version: "3.10" - - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable + - name: Set up Rust + uses: ./.github/actions/setup-rust # This step can be removed as soon as official Windows arm64 builds are published: # https://github.com/nodejs/build/issues/2450#issuecomment-705853342 diff --git a/.github/workflows/bindings-wasm-publish.yml b/.github/workflows/bindings-wasm-publish.yml index b3ce1b40ae..b1ab3c026d 100644 --- a/.github/workflows/bindings-wasm-publish.yml +++ b/.github/workflows/bindings-wasm-publish.yml @@ -16,8 +16,8 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Install stable toolchain - uses: dtolnay/rust-toolchain@stable + - name: Set up Rust + uses: ./.github/actions/setup-rust with: target: "wasm32-unknown-unknown" diff --git a/.github/workflows/cli-publish.yml b/.github/workflows/cli-publish.yml index 365586eaf8..aea483b561 100644 --- a/.github/workflows/cli-publish.yml +++ b/.github/workflows/cli-publish.yml @@ -56,8 +56,9 @@ jobs: steps: - uses: actions/checkout@v3 - - name: install rust stable - uses: dtolnay/rust-toolchain@stable + + - name: Set up Rust + uses: ./.github/actions/setup-rust - name: Install required packages (Ubuntu) if: matrix.os == 'ubuntu-latest' diff --git a/.github/workflows/private-tangle-tests.yml b/.github/workflows/private-tangle-tests.yml index 5db264192b..678a3a683e 100644 --- a/.github/workflows/private-tangle-tests.yml +++ b/.github/workflows/private-tangle-tests.yml @@ -44,8 +44,8 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Install toolchain - uses: dtolnay/rust-toolchain@stable + - name: Set up Rust + uses: ./.github/actions/setup-rust - name: Install required packages run: |