an experimental irc client

update deps, add check step

rockorager.dev 241ed9c4 a20166c2

verified
Changed files
+26 -7
+20 -1
build.zig
··· 20 20 b.default_step.dependOn(&install_step.step); 21 21 } 22 22 23 - const ziglua_dep = b.dependency("ziglua", .{ 23 + const ziglua_dep = b.dependency("lua_wrapper", .{ 24 24 .target = target, 25 25 .optimize = optimize, 26 26 .lang = .lua54, ··· 91 91 92 92 const test_step = b.step("test", "Run unit tests"); 93 93 test_step.dependOn(&run_exe_unit_tests.step); 94 + 95 + { 96 + // Add a check step for zls 97 + const check_exe = b.addExecutable(.{ 98 + .name = "comlink", 99 + .root_source_file = b.path("src/main.zig"), 100 + .target = target, 101 + .optimize = optimize, 102 + .use_llvm = target.result.cpu.arch != .x86_64, 103 + }); 104 + check_exe.root_module.addImport("vaxis", vaxis_dep.module("vaxis")); 105 + check_exe.root_module.addImport("tls", tls_dep.module("tls")); 106 + check_exe.root_module.addImport("zeit", zeit_dep.module("zeit")); 107 + check_exe.root_module.addImport("ziglua", ziglua_dep.module("ziglua")); 108 + check_exe.root_module.addOptions("build_options", opts); 109 + 110 + const check_step = b.step("check", "Check if comlink compiles"); 111 + check_step.dependOn(&check_exe.step); 112 + } 94 113 } 95 114 96 115 fn version(b: *std.Build) ![]const u8 {
+6 -6
build.zig.zon
··· 3 3 .fingerprint = 0xa8dac1987074e6a3, 4 4 .version = "0.0.0", 5 5 .dependencies = .{ 6 - .ziglua = .{ 7 - .url = "git+https://github.com/natecraddock/ziglua#00a3c39c587b1b853748c05b5f5c1dc68f5f3683", 8 - .hash = "ziglua-0.1.0-AAAAAMDKBADubTbfjHhHI0_1IS63_IV9KEsNLsy0fLm6", 9 - }, 10 6 .vaxis = .{ 11 7 .url = "git+https://github.com/rockorager/libvaxis#5b48d2c40c994363f87765fe9737d57c263275a4", 12 8 .hash = "vaxis-0.1.0-BWNV_BzyCADK2dn8dd4IAD2HjdgAFw34iRiNMX00-14g", ··· 16 12 .hash = "zeit-0.0.0-5I6bk_pZAgB03N1p1GmVOZ--gOFwwQSRKj1UXb5tnaKS", 17 13 }, 18 14 .tls = .{ 19 - .url = "git+https://github.com/rockorager/tls.zig#762fffa3be7413240b797252aa4fd2569664cbe9", 20 - .hash = "tls-0.1.0-ER2e0rj0BABk6bQGM-2Ls8M80M-dA14_QHBRMYZzoVto", 15 + .url = "git+https://github.com/ianic/tls.zig#afec3c515425bf49a8a78330e2a2fc2429a26c9c", 16 + .hash = "tls-0.1.0-ER2e0hr1BACvIoI2gwGIx6RtOQAGWFv008JsSOkhXLxT", 21 17 }, 22 18 .zzdoc = .{ 23 19 .url = "git+https://github.com/rockorager/zzdoc#57e86eb4e621bc4a96fbe0dd89ad0986db6d0483", 24 20 .hash = "zzdoc-0.0.0-tzT1PuPZAACr1jIJxjTrdOsLbfXS6idWFGfTq0gwxJiv", 21 + }, 22 + .lua_wrapper = .{ 23 + .url = "git+https://github.com/natecraddock/ziglua#70cf5b7c3941923fdcdb5c9d308f7c49de504ad4", 24 + .hash = "lua_wrapper-0.1.0-OyMC23XKBADKmeC0WOW1mgWw5bUgS5_HEqD2X6k9Jpm_", 25 25 }, 26 26 }, 27 27 .paths = .{""},