aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-09-12 14:19:16 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-09-12 14:32:05 -0700
commit7e2b6b0f1bc5877f11c50a217dd88c11481bbad4 (patch)
tree47805e9e075a0d24a7fef26bb3b5b59808aec7dd /build.zig
parent5b7eefce4696e68132a0e8d5a0be4d0ae87dc6f7 (diff)
downloadzig-7e2b6b0f1bc5877f11c50a217dd88c11481bbad4.tar.gz
zig-7e2b6b0f1bc5877f11c50a217dd88c11481bbad4.zip
Revert "ci: use zig build check-fmt instead of zig fmt --check"
This reverts commit 4d1432299fe5dccef1e8254800e365c4d6c0d435. Please don't hard-code unrelated concerns this way. build.zig should not have awareness of the naming conventions for cmake build directories.
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig9
1 files changed, 2 insertions, 7 deletions
diff --git a/build.zig b/build.zig
index eff017ce22..5211a9a70a 100644
--- a/build.zig
+++ b/build.zig
@@ -422,18 +422,13 @@ pub fn build(b: *std.Build) !void {
const optimization_modes = chosen_opt_modes_buf[0..chosen_mode_index];
const fmt_include_paths = &.{ "doc", "lib", "src", "test", "tools", "build.zig" };
- const fmt_exclude_paths = &.{
- "test/cases",
- // This is for the CI scripts.
- "build-debug",
- "build-release",
- };
+ const fmt_exclude_paths = &.{"test/cases"};
const do_fmt = b.addFmt(.{
.paths = fmt_include_paths,
.exclude_paths = fmt_exclude_paths,
});
- b.step("check-fmt", "Check source files having conforming formatting").dependOn(&b.addFmt(.{
+ b.step("test-fmt", "Check source files having conforming formatting").dependOn(&b.addFmt(.{
.paths = fmt_include_paths,
.exclude_paths = fmt_exclude_paths,
.check = true,