mirror of
https://github.com/Tilo-K/csvu.git
synced 2026-07-03 11:43:02 +00:00
Upgrade csvu to Zig 0.16 (#2)
* Port source to Zig 0.16 * Declare Zig 0.16 toolchain * ci: add pr verification
This commit is contained in:
11
build.zig
11
build.zig
@@ -73,6 +73,16 @@ pub fn build(b: *std.Build) void {
|
||||
|
||||
const run_lib_unit_tests = b.addRunArtifact(lib_unit_tests);
|
||||
|
||||
const csv_unit_tests = b.addTest(.{
|
||||
.root_module = b.createModule(.{
|
||||
.root_source_file = b.path("src/csv.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
}),
|
||||
});
|
||||
|
||||
const run_csv_unit_tests = b.addRunArtifact(csv_unit_tests);
|
||||
|
||||
const exe_unit_tests = b.addTest(.{
|
||||
.root_module = b.createModule(.{
|
||||
.root_source_file = b.path("src/main.zig"),
|
||||
@@ -88,5 +98,6 @@ pub fn build(b: *std.Build) void {
|
||||
// running the unit tests.
|
||||
const test_step = b.step("test", "Run unit tests");
|
||||
test_step.dependOn(&run_lib_unit_tests.step);
|
||||
test_step.dependOn(&run_csv_unit_tests.step);
|
||||
test_step.dependOn(&run_exe_unit_tests.step);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user