graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
ci: fan out release builds across a six-target matrix
justrach4146cb23a048
diff --git a/.github/workflows/beta-release.yml b/.github/workflows/beta-release.ymlindex 06d42e80..804d14c3 100644--- a/.github/workflows/beta-release.yml+++ b/.github/workflows/beta-release.yml@@ -34,30 +34,39 @@ jobs:needs: planif: needs.plan.outputs.build == 'true'runs-on: ubuntu-latest+ strategy:+ # One runner per target instead of a serial six-target loop: wall time+ # drops from ~24 min to roughly a single ReleaseFast build (~4-5 min).+ # fail-fast stays on (the default) so a broken target cancels the rest+ # instead of publishing a partial set.+ matrix:+ target:+ - aarch64-macos+ - x86_64-macos+ - x86_64-linux+ - aarch64-linux+ - x86_64-windows+ - aarch64-windowssteps:- uses: actions/checkout@v7- uses: ./.github/actions/setup-codegraff-zig- - name: Cross-compile beta CLI+ - name: Cross-compile beta CLI (${{ matrix.target }})env:BETA_VERSION: ${{ needs.plan.outputs.version }}+ TARGET: ${{ matrix.target }}run: |set -euo pipefail- mkdir -p beta-cli- for target in aarch64-macos x86_64-macos x86_64-linux aarch64-linux x86_64-windows aarch64-windows; do- zig build graff -Doptimize=ReleaseFast -Dtarget="$target" -Dversion="$BETA_VERSION"- name="graff-$target"- mkdir "$name"- case "$target" in *-windows) bin=graff.exe ;; *) bin=graff ;; esac- cp "zig-out/bin/$bin" "$name/$bin"- cp README.md LICENSE "$name/"- tar -czf "beta-cli/$name.tar.gz" "$name"- rm -r "$name"- done- (cd beta-cli && sha256sum graff-*.tar.gz > SHA256SUMS)+ zig build graff -Doptimize=ReleaseFast -Dtarget="$TARGET" -Dversion="$BETA_VERSION"+ name="graff-$TARGET"+ mkdir "$name"+ case "$TARGET" in *-windows) bin=graff.exe ;; *) bin=graff ;; esac+ cp "zig-out/bin/$bin" "$name/$bin"+ cp README.md LICENSE "$name/"+ tar -czf "$name.tar.gz" "$name"- uses: actions/upload-artifact@v7with:- name: beta-cli- path: beta-cli/+ name: beta-cli-${{ matrix.target }}+ path: graff-${{ matrix.target }}.tar.gzif-no-files-found: errorpublish:@@ -68,8 +77,19 @@ jobs:- uses: actions/checkout@v7- uses: actions/download-artifact@v7with:- name: beta-cli+ pattern: beta-cli-*path: beta-assets+ merge-multiple: true+ - name: Verify targets and checksums+ run: |+ set -euo pipefail+ for target in aarch64-macos x86_64-macos x86_64-linux aarch64-linux x86_64-windows aarch64-windows; do+ test -f "beta-assets/graff-$target.tar.gz" || { echo "missing beta-assets/graff-$target.tar.gz" >&2; exit 1; }+ done+ # Checksums are computed once, centrally, from the exact bytes+ # being uploaded — not per matrix job.+ (cd beta-assets && sha256sum graff-*.tar.gz > SHA256SUMS)+ cat beta-assets/SHA256SUMS- name: Recheck release branch headid: freshrun: python3 scripts/beta-release.py guard --branch "$GITHUB_REF_NAME" --sha "$GITHUB_SHA"diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 7f5b7a1e..5ea270b1 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -24,6 +24,19 @@ permissions:jobs:build:runs-on: ubuntu-latest+ strategy:+ # One runner per target instead of a serial six-target loop: wall time+ # drops from ~24 min to roughly a single ReleaseFast build (~4-5 min).+ # fail-fast stays on (the default) so a broken target cancels the rest+ # instead of publishing a partial set.+ matrix:+ target:+ - aarch64-macos+ - x86_64-macos+ - x86_64-linux+ - aarch64-linux+ - x86_64-windows+ - aarch64-windowssteps:- uses: actions/checkout@v7@@ -33,32 +46,31 @@ jobs:- name: Install Ziguses: ./.github/actions/setup-codegraff-zig- - name: Cross-compile+ - name: Cross-compile (${{ matrix.target }})+ env:+ TARGET: ${{ matrix.target }}run: |set -euo pipefailVERSION="${GITHUB_REF_NAME#v}"# Release builds phone usage/evolution telemetry here by default# (anonymous, opt out with --no-telemetry / GRAFF_NO_TELEMETRY).TELEMETRY_ENDPOINT="https://harness-telemetry.rachpradhan.workers.dev"- for target in aarch64-macos x86_64-macos x86_64-linux aarch64-linux x86_64-windows aarch64-windows; do- zig build graff -Doptimize=ReleaseFast -Dtarget="$target" -Dversion="$VERSION" -Dtelemetry-endpoint="$TELEMETRY_ENDPOINT"- name="graff-$target"- mkdir "$name"- # Windows targets emit graff.exe; every other target emits graff.- case "$target" in- *-windows) bin=graff.exe ;;- *) bin=graff ;;- esac- cp "zig-out/bin/$bin" "$name/$bin"- cp README.md LICENSE "$name/"- tar -czf "$name.tar.gz" "$name"- rm -r "$name"- done+ zig build graff -Doptimize=ReleaseFast -Dtarget="$TARGET" -Dversion="$VERSION" -Dtelemetry-endpoint="$TELEMETRY_ENDPOINT"+ name="graff-$TARGET"+ mkdir "$name"+ # Windows targets emit graff.exe; every other target emits graff.+ case "$TARGET" in+ *-windows) bin=graff.exe ;;+ *) bin=graff ;;+ esac+ cp "zig-out/bin/$bin" "$name/$bin"+ cp README.md LICENSE "$name/"+ tar -czf "$name.tar.gz" "$name"- uses: actions/upload-artifact@v7with:- name: cli-tarballs- path: graff-*.tar.gz+ name: cli-tarballs-${{ matrix.target }}+ path: graff-${{ matrix.target }}.tar.gzif-no-files-found: error# Sign + notarize the macOS CLI binaries, exactly as docs/notarization.md@@ -93,8 +105,9 @@ jobs:- uses: actions/download-artifact@v7if: steps.signing.outputs.enabled == 'true'with:- name: cli-tarballs+ pattern: cli-tarballs-*path: dist+ merge-multiple: true- name: Import Developer ID certificateif: steps.signing.outputs.enabled == 'true'@@ -209,8 +222,9 @@ jobs:- uses: actions/download-artifact@v7with:- name: cli-tarballs+ pattern: cli-tarballs-*path: .+ merge-multiple: true- uses: actions/download-artifact@v7if: needs.macos-sign.outputs.signed == 'true'