Files
zag/.github/workflows/ci.yml
T
2026-10-17 13:53:12 +01:00

34 lines
811 B
YAML

name: CI
on:
push:
branches: [develop, main]
pull_request:
branches: [develop, main]
workflow_dispatch:
jobs:
test:
runs-on: org-runner
steps:
- uses: actions/checkout@v4
- name: Install Zig
run: echo "$(.github/ci/install-zig.sh)" >> "$GITHUB_PATH"
- name: Format check
run: zig fmt --check src build.zig test
- name: Unit tests
run: zig build test --summary all
- name: End-to-end smoke test
run: zig build e2e
- name: Cross-compile every release target
run: |
for target in x86_64-linux-musl aarch64-linux-musl aarch64-macos x86_64-macos; do
echo "== $target"
zig build -Dtarget="$target" -Doptimize=ReleaseSafe -Dstrip=true --prefix "zig-out/$target"
done