Compare commits

...

2 Commits

Author SHA1 Message Date
ae75874814
readme: add support matrix
Some checks failed
CI / build (macos-latest, 0.13.0) (push) Has been cancelled
CI / build (true, ubuntu-latest, master) (push) Has been cancelled
CI / build (ubuntu-latest, 0.12.1) (push) Has been cancelled
CI / build (ubuntu-latest, 0.13.0) (push) Has been cancelled
CI / build (windows-latest, 0.13.0) (push) Has been cancelled
2024-09-15 18:51:43 -07:00
a84d562c7f
add CI 2024-09-15 18:23:42 -07:00
2 changed files with 46 additions and 0 deletions

40
.github/workflows/ci.yaml vendored Normal file
View File

@ -0,0 +1,40 @@
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
zig-version: ["0.13.0"]
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- zig-version: "0.12.1"
os: ubuntu-latest
- zig-version: "master"
check-format: true
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Zig
uses: mlugg/setup-zig@v1
with:
version: ${{ matrix.zig-version }}
- if: ${{ matrix.check-format }}
name: Check Formatting
run: zig fmt --ast-check --check .
- name: Build
run: zig build --summary all

View File

@ -28,3 +28,9 @@ const protobuf_c_dep = b.dependency("protobuf_c", .{
});
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` | ✅ | ✅ | ✅ |