From 14be01aa5cdcd42c14587306b442b7dce4800bdb Mon Sep 17 00:00:00 2001 From: Petr Portnov Date: Sun, 29 Oct 2023 21:38:41 +0300 Subject: [PATCH] ci: use `actions-rust-lang/setup-rust-toolchain` --- .github/workflows/clippy_check.yml | 2 +- .github/workflows/release.yml | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/clippy_check.yml b/.github/workflows/clippy_check.yml index 7ab4e07e..fe7fe9f8 100644 --- a/.github/workflows/clippy_check.yml +++ b/.github/workflows/clippy_check.yml @@ -5,7 +5,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: actions-rust-lang/setup-rust-toolchain@v1.5.0 - uses: actions-rs/clippy-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 230dce77..d9593bb4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,8 +7,7 @@ jobs: steps: - name: Checkout sources uses: actions/checkout@v2 - - name: Install toolchain - uses: actions-rs/toolchain@v1 + - uses: actions-rust-lang/setup-rust-toolchain@v1.5.0 - name: Run tests uses: actions-rs/cargo@v1 with: @@ -22,8 +21,7 @@ jobs: steps: - name: Checkout sources uses: actions/checkout@v2 - - name: Install toolchain - uses: actions-rs/toolchain@v1 + - uses: actions-rust-lang/setup-rust-toolchain@v1.5.0 - name: Install cargo release command uses: actions-rs/cargo@v1 with: @@ -101,8 +99,7 @@ jobs: if: ${{ startsWith(matrix.os, 'ubuntu-') }} run: sudo apt update - - name: Install toolchain - uses: actions-rs/toolchain@v1 + - uses: actions-rust-lang/setup-rust-toolchain@v1.5.0 with: target: ${{ matrix.target }}