Skip to content

Commit

Permalink
ci: use nightly rustfmt for formatting check
Browse files Browse the repository at this point in the history
  • Loading branch information
wangl-cc committed Sep 23, 2024
1 parent 1f31e65 commit 8e0e65e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ jobs:
cargo clippy --package maa-cli -- -D warnings
- name: Lint (rustfmt)
run: |
cargo fmt --package maa-cli -- --check
rustup toolchain install nightly -c rustfmt
cargo +nightly fmt --package maa-cli -- --check
- name: Install MaaCore
env:
MAA_CONFIG_DIR: ${{ github.workspace }}/maa-cli/config_examples
Expand Down Expand Up @@ -154,7 +155,9 @@ jobs:
- name: Lint (clippy)
run: cargo clippy --package maa-sys -- -D warnings
- name: Lint (fmt)
run: cargo fmt --package maa-sys -- --check
run: |
rustup toolchain install nightly -c rustfmt
cargo +nightly fmt --package maa-sys -- --check
- name: Test
# It seems rust needs a static library to check the linking.
# Without this, we can not link maa-sys to MaaCore on Windows.
Expand Down

0 comments on commit 8e0e65e

Please sign in to comment.