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:
Tilo
2026-05-31 18:27:09 +02:00
committed by GitHub
parent 65d157852a
commit 1b5ad2bc40
8 changed files with 86 additions and 41 deletions

View File

@@ -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);
}