mirror of
https://github.com/BloopAI/setup-zig.git
synced 2026-10-18 17:18:22 +00:00
test it
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
const Builder = @import("std").build.Builder;
|
||||
|
||||
pub fn build(b: *Builder) void {
|
||||
const mode = b.standardReleaseOptions();
|
||||
const exe = b.addExecutable("test", "src/main.zig");
|
||||
exe.setBuildMode(mode);
|
||||
exe.install();
|
||||
|
||||
const run_cmd = exe.run();
|
||||
run_cmd.step.dependOn(b.getInstallStep());
|
||||
|
||||
const run_step = b.step("run", "Run the app");
|
||||
run_step.dependOn(&run_cmd.step);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
const io = @import("std").io;
|
||||
|
||||
pub fn main() anyerror!void {
|
||||
const stdout = try io.getStdOut();
|
||||
try stdout.write("it works!\n");
|
||||
}
|
||||
Reference in New Issue
Block a user