ci: update the Homebrew tap on release; docs for brew and branches
CI / test (push) Successful in 3m19s
CI / test (push) Successful in 3m19s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
47b12895fd
commit
24c7a2804d
4 files changed
+97
-1
No files matched your search
@@ -60,6 +60,8 @@ Guidance for AI coding agents working in `zag`, the Zig port of the
|
||||
|
||||
## Build notes
|
||||
|
||||
- Branches: `main` is the default (same as the other submodules; the mono repo's `make update` pulls `origin main`); `develop` is the working branch. Merge `develop` into `main` to publish docs and `install.sh`.
|
||||
|
||||
- `build.zig` links libc (for `localtime_r`) and defaults Linux builds to `x86_64-linux-musl` so the
|
||||
binary is static and does not depend on the host's crt files (the host linker fails on newer gcc
|
||||
`.sframe` sections).
|
||||
@@ -67,6 +69,7 @@ Guidance for AI coding agents working in `zag`, the Zig port of the
|
||||
- `zig build e2e` runs `test/e2e.sh` against the built binary; CI runs `zig fmt --check`, unit tests,
|
||||
the e2e test and a cross-compile of all four release targets (`.github/workflows/ci.yml`).
|
||||
- Releases: tag `vX.Y.Z` (must equal `.version` in `build.zig.zon`); `.github/workflows/release.yml`
|
||||
builds the static binaries and publishes them to Gitea.
|
||||
builds the static binaries and publishes them to Gitea, then updates the Homebrew formula in
|
||||
`samson-media/homebrew-tap` when the `TAP_TOKEN` secret is set (`.github/ci/render-formula.sh`).
|
||||
- Gotchas: never return a struct holding a pointer into itself (e.g. an `Allocating` writer plus a
|
||||
`jsonpretty.Writer` over it) -- initialise it in place (`Payload.init` in `cli_jobs.zig`).
|
||||
Reference in new issue
Block a user