From d95ec5a99fcc9a4339e1850d40378bbfe55ab121 Mon Sep 17 00:00:00 2001 From: Ethan Brierley Date: Thu, 17 Oct 2024 20:06:35 +0100 Subject: [PATCH] ci: move away from deprecated `actions-rs/toolchain` (#193) Thanks for the suggestion @tl-eirik-albrigtsen this is deprecated; ```suggestion - name: Install Rust uses: dtolnay/rust-toolchain@stable ``` _Originally posted by @tl-eirik-albrigtsen in https://github.com/TrueLayer/reqwest-middleware/pull/192#discussion_r1804396867_ --- .github/workflows/ci.yml | 58 +++++++--------------------------------- 1 file changed, 10 insertions(+), 48 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f6ef673..2ad657d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,11 +13,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true + uses: dtolnay/rust-toolchain@stable - uses: actions-rs/cargo@v1 with: command: test @@ -30,11 +26,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true + uses: dtolnay/rust-toolchain@stable - name: Install cargo-hack uses: taiki-e/install-action@cargo-hack - name: test @@ -46,11 +38,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true + uses: dtolnay/rust-toolchain@stable - name: Install cargo-hack uses: taiki-e/install-action@cargo-hack - name: test @@ -62,11 +50,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true + uses: dtolnay/rust-toolchain@stable - name: Install cargo-hack uses: taiki-e/install-action@cargo-hack # Old opentelemetry features group to improve performance @@ -80,12 +64,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true - components: rustfmt + uses: dtolnay/rust-toolchain@stable - name: Check formatting uses: actions-rs/cargo@v1 with: @@ -99,12 +78,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true - components: clippy + uses: dtolnay/rust-toolchain@stable - name: Clippy check uses: actions-rs/cargo@v1 with: @@ -119,12 +93,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true - components: clippy + uses: dtolnay/rust-toolchain@stable - name: Install cargo-hack uses: taiki-e/install-action@cargo-hack - name: test @@ -146,11 +115,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true + uses: dtolnay/rust-toolchain@stable - name: Check documentation env: RUSTDOCFLAGS: -D warnings @@ -165,11 +130,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true + - name: Install Rust + uses: dtolnay/rust-toolchain@stable - uses: actions-rs/cargo@v1 with: command: publish