Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

Skip duplicate same-repo pull_request CI

justrachcb4ff208a99f
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3d3acda8..2050b24a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -4,10 +4,16 @@ on:
push:
pull_request:
+# Same-repo PRs already ran on the head-branch push. Keep pull_request for forks.
+concurrency:
+ group: ci-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
jobs:
# No-Zig checks — always enforced. The SDKs are committed, so they can be
# validated without building the binary.
sdk:
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
@@ -53,6 +59,7 @@ jobs:
# Zig build / fmt / test + SDK drift, pinned to the exact 0.17 dev build the
# codebase targets.
zig:
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
@@ -235,6 +242,7 @@ jobs:
# it compiles, passes tests, and the binary loads + runs on a real Windows
# runner (the macOS/Linux jobs above can't exercise the console backend).
windows:
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
runs-on: windows-latest
steps:
- uses: actions/checkout@v7
diff --git a/.github/workflows/desktop.yml b/.github/workflows/desktop.yml
index b0b004dc..86527934 100644
--- a/.github/workflows/desktop.yml
+++ b/.github/workflows/desktop.yml
@@ -8,8 +8,17 @@ on:
paths: ['apps/native/**', 'src/**', 'scripts/test-server-retention.py', 'scripts/eval/frontend_model.py', 'scripts/eval/mock_model.py', 'scripts/eval/test_mock_model.py', 'scripts/*zig-ci.py', '.github/actions/setup-codegraff-zig/**', '.github/workflows/desktop.yml']
permissions:
contents: read
+
+# Push already covers same-repo PRs whose head is main or release/*.
+# Feature-branch PRs and forks still use pull_request. Cancel stacked runs on
+# the same ref so macos runners are not queued behind a superseded SHA.
+concurrency:
+ group: desktop-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
jobs:
desktop:
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork || (github.event.pull_request.head.ref != 'main' && !startsWith(github.event.pull_request.head.ref, 'release/'))
runs-on: macos-14
timeout-minutes: 15
defaults:
@@ -46,6 +55,7 @@ jobs:
- run: bun build electron/updater-runtime.cjs --target=node --format=cjs --external electron --outfile /tmp/updater-runtime.cjs
native:
name: native macOS GUI
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork || (github.event.pull_request.head.ref != 'main' && !startsWith(github.event.pull_request.head.ref, 'release/'))
runs-on: macos-26
timeout-minutes: 20
defaults: