From 86afb437cb7da49d1d601bf11fcd2c1cc342f6c5 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sat, 28 Sep 2024 03:39:01 +0900 Subject: [PATCH] ci: Use taiki-e/github-actions/install-rust action https://github.com/taiki-e/github-actions/commit/3d23ff7968df58dccbe78a56af766ca42d34e05f --- .github/workflows/ci.yml | 9 ++++----- .github/workflows/release.yml | 3 +-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0d5985f..07822bb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,9 +62,9 @@ jobs: timeout-minutes: 60 steps: - uses: taiki-e/checkout-action@v1 - - name: Install Rust - run: rustup toolchain add "${{ matrix.rust }}" --no-self-update && rustup default "${{ matrix.rust }}" - - run: rustup toolchain add nightly --no-self-update + - uses: taiki-e/github-actions/install-rust@main + with: + toolchain: ${{ matrix.rust }} - run: cargo test --workspace --all-features - run: | cargo install --path . --debug @@ -99,8 +99,7 @@ jobs: timeout-minutes: 60 steps: - uses: taiki-e/checkout-action@v1 - - name: Install Rust - run: rustup toolchain add nightly --no-self-update && rustup default nightly + - uses: taiki-e/github-actions/install-rust@nightly - run: CARGO_HACK_TEST_TOOLCHAIN=${{ matrix.rust }} cargo test --workspace --all-features # Remove stable toolchain to disable https://github.com/taiki-e/cargo-hack/pull/138's behavior. - run: rustup toolchain remove stable diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 30d3288..ff53abf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -58,8 +58,7 @@ jobs: contents: write steps: - uses: taiki-e/checkout-action@v1 - - name: Install Rust - run: rustup update stable --no-self-update + - uses: taiki-e/github-actions/install-rust@stable - uses: taiki-e/setup-cross-toolchain-action@v1 with: target: ${{ matrix.target }}