mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-09-08 00:47:22 +08:00
ci: 除 fmt 外一律使用 stable toolchain
This commit is contained in:
@@ -26,7 +26,7 @@ jobs:
|
|||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Cache dependencies
|
||||||
uses: swatinem/rust-cache@v2
|
uses: swatinem/rust-cache@v2
|
||||||
@@ -34,7 +34,7 @@ jobs:
|
|||||||
save-if: ${{ github.ref == 'refs/heads/main' }}
|
save-if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
|
|
||||||
- name: cargo fmt check
|
- name: cargo fmt check
|
||||||
run: cargo fmt --check
|
run: cargo +nightly fmt --check
|
||||||
|
|
||||||
- name: cargo clippy
|
- name: cargo clippy
|
||||||
run: cargo clippy
|
run: cargo clippy
|
||||||
|
|||||||
Reference in New Issue
Block a user