Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,38 @@ pub fn build(b: *std.Build) void {
tools_step.dependOn(&b.addInstallArtifact(check_assertions, .{}).step);
tools_step.dependOn(&b.addInstallArtifact(check_bounded_loops, .{}).step);

// Minimal integration example
const minimal_integration = b.addExecutable(.{
.name = "minimal_integration",
.root_module = b.createModule(.{
.root_source_file = b.path("examples/minimal_integration.zig"),
.target = target,
.optimize = optimize,
}),
});
minimal_integration.root_module.addImport("z6", z6_module);
b.installArtifact(minimal_integration);

const run_minimal_integration = b.addRunArtifact(minimal_integration);
const integration_step = b.step("run-integration", "Run minimal integration proof-of-concept");
integration_step.dependOn(&run_minimal_integration.step);

// Scenario-based integration example
const scenario_integration = b.addExecutable(.{
.name = "scenario_integration",
.root_module = b.createModule(.{
.root_source_file = b.path("examples/scenario_integration.zig"),
.target = target,
.optimize = optimize,
}),
});
scenario_integration.root_module.addImport("z6", z6_module);
b.installArtifact(scenario_integration);

const run_scenario_integration = b.addRunArtifact(scenario_integration);
const scenario_step = b.step("run-scenario", "Run scenario-based integration example");
scenario_step.dependOn(&run_scenario_integration.step);

// Test checker tools
const check_assertions_tests = b.addTest(.{
.root_module = b.createModule(.{
Expand Down
Loading
Loading