Compare commits
4 Commits
1.5.0
...
9deee2efd3
| Author | SHA1 | Date | |
|---|---|---|---|
|
9deee2efd3
|
|||
|
|
fc2500abed | ||
|
|
04a42559c6 | ||
|
788002c09c
|
12
.github/workflows/ci.yaml
vendored
12
.github/workflows/ci.yaml
vendored
@@ -14,21 +14,23 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
zig-version: ["0.13.0"]
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
zig-version: ["0.15.2"]
|
||||
os: [macos-latest, windows-latest]
|
||||
include:
|
||||
- zig-version: "0.12.1"
|
||||
- zig-version: "0.15.2"
|
||||
os: ubuntu-latest
|
||||
- zig-version: "master"
|
||||
check-format: true
|
||||
|
||||
- zig-version: "master"
|
||||
os: ubuntu-latest
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Zig
|
||||
uses: mlugg/setup-zig@v1
|
||||
uses: mlugg/setup-zig@v2
|
||||
with:
|
||||
version: ${{ matrix.zig-version }}
|
||||
|
||||
|
||||
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
.zig-cache/
|
||||
zig-out/
|
||||
11
build.zig
11
build.zig
@@ -6,14 +6,15 @@ pub fn build(b: *std.Build) void {
|
||||
|
||||
const upstream = b.dependency("protobuf_c", .{});
|
||||
|
||||
const lib = b.addStaticLibrary(.{
|
||||
const lib = b.addLibrary(.{
|
||||
.name = "protobuf_c",
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
.root_module = b.createModule(.{
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
.link_libc = true,
|
||||
}),
|
||||
});
|
||||
|
||||
lib.linkLibC();
|
||||
|
||||
lib.addCSourceFiles(.{
|
||||
.root = upstream.path("protobuf-c"),
|
||||
.files = &.{"protobuf-c.c"},
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
.{
|
||||
.name = "protobuf_c",
|
||||
.version = "1.5.0",
|
||||
.minimum_zig_version = "0.12.0",
|
||||
.name = .protobuf_c,
|
||||
.fingerprint = 0x39094F755166B308,
|
||||
.version = "1.5.2",
|
||||
.minimum_zig_version = "0.15.2",
|
||||
.dependencies = .{
|
||||
.protobuf_c = .{
|
||||
.url = "git+https://github.com/protobuf-c/protobuf-c?ref=v1.5.0#8c201f6e47a53feaab773922a743091eb6c8972a",
|
||||
.hash = "12205a20f38efb23d8f688ddb208047b26235608d9fde4c84ce3302ea156443c2b12",
|
||||
.url = "git+https://github.com/protobuf-c/protobuf-c?ref=v1.5.2#4719fdd7760624388c2c5b9d6759eb6a47490626",
|
||||
.hash = "N-V-__8AAOzKCgADWAaJ_5J9U3rotTnQCw0OBd-Qb3gL-8vW",
|
||||
},
|
||||
},
|
||||
.paths = .{
|
||||
|
||||
@@ -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) | ✅ | ✅ |
|
||||
|
||||
Reference in New Issue
Block a user