| name | binary-release |
| description | Build macOS Swift binary archives for the x-gateway reader and writer CLI executables. |
| allowed-tools | Bash, Read, Write, Grep, Glob |
| user-invocable | true |
| argument-hint | ["target matrix or default all"] |
Binary Release Skill
Use this skill to build compiled Swift binaries for x-gateway-reader and x-gateway-writer.
Target Matrix (Default)
Build Prerequisites
- Quality gates before packaging:
task ci
- Resolve version:
VERSION=$(tr -d '[:space:]' < VERSION)
Build Commands
Build macOS Homebrew archives containing both remaining binaries:
task build:homebrew -- darwin-arm64 darwin-x64
Integrity File
Generate checksums:
(
cd dist/homebrew &&
shasum -a 256 x-gateway-"${VERSION}"-*.tar.gz
)
Verification
- Ensure both archives and
.sha256 files exist under dist/homebrew/.
- Run local smoke test on host-compatible artifact:
tar -tzf "dist/homebrew/x-gateway-${VERSION}-darwin-arm64.tar.gz" | grep './bin/x-gateway-reader'
tar -tzf "dist/homebrew/x-gateway-${VERSION}-darwin-arm64.tar.gz" | grep './bin/x-gateway-writer'
- Ensure checksum files exist and are non-empty.
Failure Handling
- If a Swift cross-build target fails, report the target and do not publish a partial release unless explicitly requested.
- If binary runs but
version fails, stop and mark artifact invalid.
- If archive contents do not include both binaries, stop before GitHub publish.