From 8761ce0bb2f245ef024b65febec3ed91a8f2ead7 Mon Sep 17 00:00:00 2001 From: cijiugechu Date: Sun, 22 Oct 2023 18:41:50 +0800 Subject: [PATCH] ci: switch to `dtolnay/rust-toolchain` --- .github/workflows/ci.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f432c9d..01297c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,10 +12,9 @@ jobs: steps: - uses: actions/checkout@v3 - name: Install Rust - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: default - toolchain: stable + components: rustfmt, clippy, rust-docs - uses: Swatinem/rust-cache@v2 - name: clippy run: cargo clippy --all -- -D warnings @@ -29,17 +28,14 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - rust: [1.73.0] os: [ubuntu-latest, macOS-latest, windows-latest] steps: - uses: actions/checkout@v3 - name: Install Rust - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal - toolchain: ${{ matrix.rust }} - override: true + components: rustfmt, clippy, rust-docs - uses: Swatinem/rust-cache@v2 - name: Run tests run: cargo test --all --verbose