mirror of
https://github.com/ziex-dev/ziex.git
synced 2026-07-20 02:29:36 -06:00
chore: add syncbench step
This commit is contained in:
parent
df4a427b20
commit
e22b3c14bf
26
build.zig
26
build.zig
@ -27,15 +27,6 @@ pub fn build(b: *std.Build) !void {
|
||||
options.addOption([]const u8, "homepage", build_zon.homepage);
|
||||
options.addOption([]const u8, "minimum_zig_version", build_zon.minimum_zig_version);
|
||||
|
||||
const zx_runtime_options = b.addOptions();
|
||||
zx_runtime_options.addOption(?[]const u8, "app_base_path", null);
|
||||
zx_runtime_options.addOption(?u16, "server_port", null);
|
||||
zx_runtime_options.addOption(?[]const u8, "server_address", null);
|
||||
zx_runtime_options.addOption(?[]const u8, "server_rootdir", null);
|
||||
zx_runtime_options.addOption(?[]const u8, "cli_command", null);
|
||||
zx_runtime_options.addOption(bool, "introspect", false);
|
||||
zx_runtime_options.addOption(bool, "feature_sqlite", false);
|
||||
|
||||
const cli_options_dev = b.addOptions();
|
||||
cli_options_dev.addOption([]const u8, "zig_exe", b.graph.zig_exe);
|
||||
|
||||
@ -76,7 +67,6 @@ pub fn build(b: *std.Build) !void {
|
||||
if (!exclude_core_lang) mod.addImport("zx_core_lang", zx_core_lang_mod);
|
||||
mod.addImport("cachez", cachez_dep.module("cache"));
|
||||
mod.addOptions("zx_info", options);
|
||||
mod.addOptions("zx_options", zx_runtime_options);
|
||||
mod.addOptions("zx_module_options", zx_module_options);
|
||||
}
|
||||
|
||||
@ -233,6 +223,22 @@ pub fn build(b: *std.Build) !void {
|
||||
events_gen_step.dependOn(&events_gen_run.step);
|
||||
}
|
||||
|
||||
// --- Steps: Sync Benchmark --- //
|
||||
{
|
||||
const syncbench_step = b.step("syncbench", "Run synchronization benchmark from GH actions");
|
||||
|
||||
const syncbench_exe = b.addExecutable(.{
|
||||
.name = "syncbench",
|
||||
.root_module = b.createModule(.{
|
||||
.root_source_file = b.path("site/app/pages/bench.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
}),
|
||||
});
|
||||
const syncbench_run = b.addRunArtifact(syncbench_exe);
|
||||
syncbench_step.dependOn(&syncbench_run.step);
|
||||
}
|
||||
|
||||
// --- ZX Releases (Cross-compilation targets for all platforms) --- //
|
||||
{
|
||||
const release_targets = [_]struct {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user