mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-18 16:24:38 +00:00
ci: skip cargo fmt on the Windows lint leg (#2200)
One rustfmt call with every source root of the workspace is now longer than a Windows command line may be (os error 206). rustfmt's result is the same on every system; the Linux and macOS legs keep checking it. The lint-command guard states the per-system stages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
06180c1a3f
commit
1cc156dcc3
2 files changed
+14
-4
No files matched your search
@@ -64,7 +64,12 @@ jobs:
|
||||
python3 scripts/test-workspace-concurrency.py
|
||||
python3 scripts/test-workspace-tests.py
|
||||
fi
|
||||
cargo fmt --check
|
||||
# One rustfmt call gets every source root of the workspace, which is longer than
|
||||
# Windows allows for a command line (os error 206). rustfmt's result is the same on
|
||||
# every system, so the Linux and macOS legs check it.
|
||||
if [ "$RUNNER_OS" != Windows ]; then
|
||||
cargo fmt --check
|
||||
fi
|
||||
cargo clippy --workspace --all-targets --locked -- -D warnings
|
||||
cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
|
||||
command: |
|
||||
|
||||
Reference in new issue
Block a user