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.
This commit is contained in:
2025-03-05 20:21:04 -07:00
parent ae75874814
commit 788002c09c
4 changed files with 16 additions and 10 deletions

View File

@@ -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

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
.zig-cache/
zig-out/

View File

@@ -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 = .{

View File

@@ -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) | ✅ | ✅ |