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:
Renée Kooi
2020-02-01 19:01:44 +01:00
committed by GitHub
parent 25e170b42c
commit bd0d3f0ae3
5 changed files with 31 additions and 31 deletions
+4 -8
View File
@@ -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
View File
@@ -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);
}