From 39d08789507b09e5d1797d6dfb07efda29369a57 Mon Sep 17 00:00:00 2001 From: Neel Sani Date: Wed, 28 May 2025 03:53:32 -0400 Subject: [PATCH 1/3] Add "xmlunicode.c" --- build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 90895ec..6f6745d 100644 --- a/build.zig +++ b/build.zig @@ -181,7 +181,7 @@ pub fn build(b: *std.Build) void { if (output) xml_lib.root_module.addCSourceFile(.{ .file = upstream.path("xmlsave.c"), .flags = xml_flags }); if (pattern) xml_lib.root_module.addCSourceFile(.{ .file = upstream.path("pattern.c"), .flags = xml_flags }); if (reader) xml_lib.root_module.addCSourceFile(.{ .file = upstream.path("xmlreader.c"), .flags = xml_flags }); - if (regexps) xml_lib.root_module.addCSourceFiles(.{ .files = &.{"xmlregexp.c"}, .root = upstream.path(""), .flags = xml_flags }); + if (regexps) xml_lib.root_module.addCSourceFiles(.{ .files = &.{ "xmlregexp.c", "xmlunicode.c" }, .root = upstream.path(""), .flags = xml_flags }); if (relaxng) xml_lib.root_module.addCSourceFile(.{ .file = upstream.path("relaxng.c"), .flags = xml_flags }); if (schemas) xml_lib.root_module.addCSourceFiles(.{ .files = &.{ "xmlschemas.c", "xmlschemastypes.c" }, .root = upstream.path(""), .flags = xml_flags }); if (schematron) xml_lib.root_module.addCSourceFile(.{ .file = upstream.path("schematron.c"), .flags = xml_flags }); From bb15a315939e0df6566692871c9ec741cbbf4fd2 Mon Sep 17 00:00:00 2001 From: Neel Sani Date: Wed, 28 May 2025 03:53:54 -0400 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 632368f..047af34 100644 --- a/README.md +++ b/README.md @@ -21,5 +21,5 @@ const libxml2_dependency = b.dependency("libxml2", .{ .target = target, .optimize = optimize, }); -your_exe.linkLibrary(libxml2_dependency.artifact("libxml2")); +your_exe.linkLibrary(libxml2_dependency.artifact("xml")); ``` From 72b27668e7844bf5bbd2e7cf215c46b77c549a49 Mon Sep 17 00:00:00 2001 From: Techatrix Date: Thu, 29 May 2025 18:17:25 +0200 Subject: [PATCH 3/3] update mlugg/setup-zig to v2 --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8f94879..86d7bcd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -25,7 +25,7 @@ jobs: uses: actions/checkout@v4 - name: Setup Zig - uses: mlugg/setup-zig@v1 + uses: mlugg/setup-zig@v2 with: version: ${{ matrix.zig-version }}