From 62560e91abb8f20d198820c0441528b74f0c4616 Mon Sep 17 00:00:00 2001 From: Ciffelia Date: Sun, 12 Nov 2023 20:03:28 +0900 Subject: [PATCH] ci: remove `actions-rs/toolchain` action close #124 --- .github/workflows/ci.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 78fd970..560361d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,12 +21,10 @@ jobs: - uses: actions/checkout@v4 - name: Setup Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ env.RUST_VERSION }} - profile: minimal - components: rustfmt - override: true + run: | + rustup set profile minimal + rustup toolchain install "$RUST_VERSION" + rustup component add rustfmt - name: Check code format run: cargo fmt --all -- --check @@ -37,12 +35,10 @@ jobs: - uses: actions/checkout@v4 - name: Setup Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ env.RUST_VERSION }} - override: true - profile: minimal - components: clippy + run: | + rustup set profile minimal + rustup toolchain install "$RUST_VERSION" + rustup component add clippy - uses: Swatinem/rust-cache@v2