diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1150fd..3684144 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: ciffelia/cargo-cache-action@v1