ci: add Zig 0.14.1 build and test workflow (#1863)

* ci: add Zig CI workflow

Add GitHub Actions workflow for Zig (the only supported language
without CI). Runs zig build and zig build test on ubuntu, macOS,
and Windows. Targets Zig 0.14.1 per codes/zig/build.zig.

Co-Authored-By: claude-flow <[email protected]>

* ci: use a compatible macOS image for Zig 0.14.1

---------

Co-authored-by: Santosh Maturi <[email protected]>
Co-authored-by: claude-flow <[email protected]>
Co-authored-by: krahets <[email protected]>
This commit is contained in:
Santosh Maturi
2026-10-11 01:27:13 +08:00
committed by GitHub
co-authored by claude-flow Santosh Maturi krahets
parent 04757b6a57
commit 4d4e22a507
+42
View File
@@ -0,0 +1,42 @@
name: Zig
on:
push:
branches: ["main"]
paths:
- ".github/workflows/zig.yml"
- "codes/zig/**/*.zig"
- "codes/zig/build.zig"
pull_request:
branches: ["main"]
paths:
- ".github/workflows/zig.yml"
- "codes/zig/**/*.zig"
- "codes/zig/build.zig"
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# Keep the macOS SDK compatible with Zig 0.14.1.
os: [ubuntu-latest, macos-14, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: mlugg/setup-zig@v2
with:
version: "0.14.1"
- name: Build
working-directory: codes/zig
run: zig build
- name: Test
working-directory: codes/zig
run: zig build test