CI / test (push) Successful in 5m25s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
34 lines
814 B
YAML
34 lines
814 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [develop, main]
|
|
pull_request:
|
|
branches: [develop, main]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
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
|