ci: use zig build check-fmt instead of zig fmt --check

We already have a zig build step for this: test-fmt.

* Rename the test-fmt step to check-fmt.
  test-fmt sounds like it runs tests for `zig fmt` itself (lib/std/zig/render.zig).
* Use it instead of `zig fmt --check` in the CI scripts.
* Also use it in CI scripts that didn't have this check before.
This commit is contained in:
Wooster
2023-08-29 23:10:36 +02:00
committed by Veikka Tuominen
parent f33bb0228b
commit 4d1432299f
5 changed files with 11 additions and 19 deletions

View File

@@ -50,11 +50,8 @@ unset CXX
ninja install
# TODO: move this to a build.zig step (check-fmt)
echo "Looking for non-conforming code formatting..."
stage3-release/bin/zig fmt --check .. \
--exclude ../test/cases/ \
--exclude ../build-release
stage3-release/bin/zig build check-fmt
# simultaneously test building self-hosted without LLVM and with 32-bit arm
stage3-release/bin/zig build \