mirror of
https://github.com/BloopAI/setup-zig.git
synced 2026-10-19 17:28:23 +00:00
Actually support downloading Zig version: master (#5)
* Fix extracted folder name
* ci: also test with zig master
* fix lint
* fail on error
* debug
* other debug 😂
* console.log
* lol apply the change
* yadda
* wtf
* fuck
* ????
* xauuaoethosnuhtnohqsn
* siiiiiigh
* just use stderr lol whatever
* ditch debugging
* use test
This commit is contained in:
+4
-8
@@ -2,13 +2,9 @@ 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 test_build = b.addTest("src/main.zig");
|
||||
test_build.setBuildMode(mode);
|
||||
|
||||
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);
|
||||
const test_step = b.step("test", "Run the app");
|
||||
test_step.dependOn(&test_build.step);
|
||||
}
|
||||
|
||||
+3
-4
@@ -1,6 +1,5 @@
|
||||
const io = @import("std").io;
|
||||
const debug = @import("std").debug;
|
||||
|
||||
pub fn main() anyerror!void {
|
||||
const stdout = try io.getStdOut();
|
||||
try stdout.write("it works!\n");
|
||||
test "it works" {
|
||||
debug.assert(1 == 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user