From 788002c09c410d4ecf35f602c8d727d64702fee8 Mon Sep 17 00:00:00 2001 From: torque Date: Wed, 5 Mar 2025 20:21:04 -0700 Subject: [PATCH] build: support 0.14.0 Unfortunately, this has irreconcilable incompatibilities with previous versions of zig, due to the build.zig.zon schema changes. Support for older versions has been dropped. --- .github/workflows/ci.yaml | 10 ++++++---- .gitignore | 2 ++ build.zig.zon | 7 ++++--- readme.md | 7 ++++--- 4 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 .gitignore diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ce064da..db0f9dd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -14,14 +14,16 @@ jobs: strategy: fail-fast: false matrix: - zig-version: ["0.13.0"] - os: [ubuntu-latest, macos-latest, windows-latest] + zig-version: ["0.14.0"] + os: [macos-latest, windows-latest] include: - - zig-version: "0.12.1" + - zig-version: "0.14.0" os: ubuntu-latest - - zig-version: "master" check-format: true + + - zig-version: "master" os: ubuntu-latest + runs-on: ${{ matrix.os }} steps: - name: Checkout diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3389c86 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.zig-cache/ +zig-out/ diff --git a/build.zig.zon b/build.zig.zon index 016cd28..d4d9f76 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,11 +1,12 @@ .{ - .name = "protobuf_c", + .name = .protobuf_c, + .fingerprint = 0x39094F755166B308, .version = "1.5.0", - .minimum_zig_version = "0.12.0", + .minimum_zig_version = "0.14.0", .dependencies = .{ .protobuf_c = .{ .url = "git+https://github.com/protobuf-c/protobuf-c?ref=v1.5.0#8c201f6e47a53feaab773922a743091eb6c8972a", - .hash = "12205a20f38efb23d8f688ddb208047b26235608d9fde4c84ce3302ea156443c2b12", + .hash = "N-V-__8AAGKbCgBaIPOO-yPY9ojdsggEeyYjVgjZ_eTITOMw", }, }, .paths = .{ diff --git a/readme.md b/readme.md index 71e8c11..a048141 100644 --- a/readme.md +++ b/readme.md @@ -31,6 +31,7 @@ your_exe.linkLibrary(protobuf_c_dep.artifact("protobuf_c")); ## Version Support Matrix -| Refname | protobuf-c Version | Zig `0.12.x` | Zig `0.13.x` | Zig `0.14.0-dev` | -|----------|--------------------|--------------|--------------|------------------| -| `1.5.0` | `1.5.0` | ✅ | ✅ | ✅ | +| Refname | protobuf-c Version | Zig `0.14.0` | Zig `0.13.x` | Zig `0.12.x` | +|-----------|--------------------|-------------------|--------------|--------------| +| `1.5.0+1` | `1.5.0` | ✅ | ❌ | ❌ | +| `1.5.0` | `1.5.0` | (as a dependency) | ✅ | ✅ |