mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-21 20:24:42 +00:00
Merge pull request #1752 from lightpanda-io/build-zig-fmt-check
Some checks failed
e2e-test / zig build release (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
e2e-test / browser fetch (push) Has been cancelled
zig-test / zig test using v8 in debug mode (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
Some checks failed
e2e-test / zig build release (push) Has been cancelled
e2e-test / demo-scripts (push) Has been cancelled
e2e-test / cdp-and-hyperfine-bench (push) Has been cancelled
e2e-test / perf-fmt (push) Has been cancelled
e2e-test / browser fetch (push) Has been cancelled
zig-test / zig test using v8 in debug mode (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
build: add code formatting check
This commit is contained in:
11
build.zig
11
build.zig
@@ -52,6 +52,17 @@ pub fn build(b: *Build) !void {
|
|||||||
mod.addImport("lightpanda", mod); // allow circular "lightpanda" import
|
mod.addImport("lightpanda", mod); // allow circular "lightpanda" import
|
||||||
mod.addImport("build_config", opts.createModule());
|
mod.addImport("build_config", opts.createModule());
|
||||||
|
|
||||||
|
// Format check
|
||||||
|
const fmt_step = b.step("fmt", "Check code formatting");
|
||||||
|
const fmt = b.addFmt(.{
|
||||||
|
.paths = &.{ "src", "build.zig", "build.zig.zon" },
|
||||||
|
.check = true,
|
||||||
|
});
|
||||||
|
fmt_step.dependOn(&fmt.step);
|
||||||
|
|
||||||
|
// Set default behavior
|
||||||
|
b.default_step.dependOn(fmt_step);
|
||||||
|
|
||||||
try linkV8(b, mod, enable_asan, enable_tsan, prebuilt_v8_path);
|
try linkV8(b, mod, enable_asan, enable_tsan, prebuilt_v8_path);
|
||||||
try linkCurl(b, mod);
|
try linkCurl(b, mod);
|
||||||
try linkHtml5Ever(b, mod);
|
try linkHtml5Ever(b, mod);
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
.v8 = .{
|
.v8 = .{
|
||||||
.url = "https://github.com/lightpanda-io/zig-v8-fork/archive/refs/tags/v0.3.1.tar.gz",
|
.url = "https://github.com/lightpanda-io/zig-v8-fork/archive/refs/tags/v0.3.1.tar.gz",
|
||||||
.hash = "v8-0.0.0-xddH64J7BAC81mkf6G9RbEJxS-W3TIRl5iFnShwbqCqy",
|
.hash = "v8-0.0.0-xddH64J7BAC81mkf6G9RbEJxS-W3TIRl5iFnShwbqCqy",
|
||||||
|
|
||||||
},
|
},
|
||||||
//.v8 = .{ .path = "../zig-v8-fork" },
|
//.v8 = .{ .path = "../zig-v8-fork" },
|
||||||
.brotli = .{
|
.brotli = .{
|
||||||
|
|||||||
Reference in New Issue
Block a user