Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/zig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
tests:
strategy:
matrix:
zig-version: ["0.12.0", "0.13.0"]
zig-version: ["0.14.0"]
runs-on: ["ubuntu-latest", "macos-13", "macos-latest", "windows-latest"]
runs-on: ${{ matrix.runs-on }}
steps:
Expand All @@ -26,5 +26,5 @@ jobs:
submodules: recursive
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.12.0
version: 0.14.0
- run: zig fmt --check build.zig src/*.zig
4 changes: 2 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub fn build(b: *std.Build) !void {
.target = target,
.optimize = optimize,
});
try linkPcre(b, &lib.root_module, libpcre, use_system);
try linkPcre(b, lib.root_module, libpcre, use_system);
b.installArtifact(lib);

const main_tests = b.addTest(.{
Expand All @@ -33,7 +33,7 @@ pub fn build(b: *std.Build) !void {
.optimize = optimize,
.target = target,
});
try linkPcre(b, &main_tests.root_module, libpcre, use_system);
try linkPcre(b, main_tests.root_module, libpcre, use_system);

const main_tests_run = b.addRunArtifact(main_tests);
main_tests_run.step.dependOn(&main_tests.step);
Expand Down
5 changes: 3 additions & 2 deletions build.zig.zon
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
.{
.name = "libpcre.zig",
.name = .libpcre_zig,
.version = "0.1.0",
.dependencies = .{
.pcre = .{
.url = "https://github.com/kivikakk/pcre-8.45/archive/6a08aa250b3ca1deea5fbc5f696bb4e25ac2da90.tar.gz",
.hash = "1220d07bc993a0378d209d115c8937d32b625bb70d3ac9ef9975efb961670af389a3",
},
},
.minimum_zig_version = "0.12.0",
.fingerprint = 0xc2f976f309fad70e,
.minimum_zig_version = "0.14.0",
.paths = .{
"build.zig",
"build.zig.zon",
Expand Down