ci: Gitea Actions workflows for CI and tagged releases; strip option (M7)
CI / test (push) Canceled after 0s
CI / test (push) Canceled after 0s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c5faf8a682
commit
b022dcf32b
5 files changed
+130
No files matched your search
@@ -0,0 +1,33 @@
|
||||
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
|
||||
Reference in new issue
Block a user