ci: 除 fmt 外一律使用 stable toolchain

This commit is contained in:
amtoaer
2025-05-29 01:56:11 +08:00
parent 34d3e47b2d
commit 6383730706

View File

@@ -26,7 +26,7 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4
- run: rustup default nightly && rustup component add rustfmt clippy
- run: rustup default stable && rustup component add clippy && rustup component add rustfmt --toolchain nightly
- name: Cache dependencies
uses: swatinem/rust-cache@v2
@@ -34,7 +34,7 @@ jobs:
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: cargo fmt check
run: cargo fmt --check
run: cargo +nightly fmt --check
- name: cargo clippy
run: cargo clippy