diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fbf38b6..f46bfa9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,13 +12,17 @@ jobs: strategy: fail-fast: false matrix: - zig-version: ["0.13.0"] - os: [ubuntu-latest, macos-latest, windows-latest] + zig-version: ["0.14.0"] + os: [ubuntu-latest, windows-latest] include: - - zig-version: "master" + - zig-version: "0.14.0" check-format: true os: macos-latest build-options: "-Dbuild-tests -Dbuild-benchmarks" + + - zig-version: "master" + os: macos-latest + runs-on: ${{ matrix.os }} steps: - name: Checkout diff --git a/build.zig b/build.zig index 78ed4ed..0e5bdca 100644 --- a/build.zig +++ b/build.zig @@ -81,10 +81,10 @@ pub fn build(b: *std.Build) void { include_root.path(b, "uv/unix.h"), "uv/unix.h", ); - if (!tinfo.isAndroid()) + if (!tinfo.abi.isAndroid()) lib.linkSystemLibrary("pthread"); - if (tinfo.isDarwin()) { + if (tinfo.os.tag.isDarwin()) { lib.root_module.addCMacro("_DARWIN_UNLIMITED_SELECT", "1"); lib.root_module.addCMacro("_DARWIN_USE_64_BIT_INODE", "1"); lib.addCSourceFiles(.{ @@ -96,7 +96,7 @@ pub fn build(b: *std.Build) void { include_root.path(b, "uv/darwin.h"), "uv/darwin.h", ); - } else if (tinfo.isAndroid()) { + } else if (tinfo.abi.isAndroid()) { lib.root_module.addCMacro("_GNU_SOURCE", ""); lib.linkSystemLibrary("dl"); lib.addCSourceFiles(.{ diff --git a/build.zig.zon b/build.zig.zon index 95718ab..472ab7d 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,11 +1,12 @@ .{ - .name = "libuv", + .name = .libuv, + .fingerprint = 0x7CB3932CBFAADA86, .version = "1.5.0", - .minimum_zig_version = "0.13.0", + .minimum_zig_version = "0.14.0", .dependencies = .{ .libuv = .{ .url = "git+https://github.com/libuv/libuv?ref=v1.50.0#8fb9cb919489a48880680a56efecff6a7dfb4504", - .hash = "12207ac22e5e40afe515b7c319237785113c97ee84a75f7c66c1a0e7cc6e743debeb", + .hash = "N-V-__8AAH34QwB6wi5eQK_lFbfDGSN3hRE8l-6Ep198ZsGg", }, }, .paths = .{ diff --git a/readme.md b/readme.md index a1fd28d..f990b91 100644 --- a/readme.md +++ b/readme.md @@ -35,8 +35,8 @@ your_exe.linkLibrary(libuv_dep.artifact("uv")); ## Zig Version Support Matrix -| Refname | libuv Version | Zig `0.13` | Zig `0.14.0-dev` | -|-----------|----------------|------------|------------------| -| | `1.50.0` | ✅ | ✅ | +| Refname | libuv Version | Zig `0.14.0` | +|-----------|----------------|--------------| +| | `1.50.0` | ✅ | [libuv]: https://github.com/libuv