Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
perf(ci): cut about a minute from every release (#8250)
Theo Brownea3a8cbd60539
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex df4112996..b8a2fab33 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -6,7 +6,8 @@ on:- "v*.*.*"- "!v*-nightly.*"schedule:- - cron: "0 */3 * * *"+ # Off minute zero: GitHub delays scheduled runs most at the top of the hour.+ - cron: "7 */3 * * *"workflow_dispatch:inputs:channel:@@ -22,6 +23,17 @@ on:required: falsetype: string+# Serialize nightlies (scheduled and manual) so overlapping runs cannot build+# the same commit twice or publish out of order. Stable tag releases get their+# own group so a nightly never blocks them. Running publishers are never+# canceled, and queue: max keeps every pending run instead of the default+# newest-wins single slot, so a queued stable tag can never be silently+# dropped. Queued nightlies with no new commits skip via check_changes.+concurrency:+ group: release-${{ (github.event_name == 'schedule' || inputs.channel == 'nightly') && 'nightly' || 'stable' }}+ cancel-in-progress: false+ queue: max+permissions:contents: readid-token: none@@ -199,8 +211,14 @@ jobs:relay_public_config:name: Resolve T3 Connect public config- needs: preflight- if: ${{ !failure() && !cancelled() && needs.preflight.result == 'success' }}+ # Consumes only the commit SHA, not preflight's resolved version, so it runs+ # alongside preflight instead of after it. The condition mirrors preflight's:+ # check_changes is skipped on non-schedule events (skipped is neither failure+ # nor success, so success() would be wrong here).+ needs: [check_changes]+ if: |+ !failure() && !cancelled() &&+ (github.event_name != 'schedule' || needs.check_changes.outputs.has_changes == 'true')runs-on: blacksmith-8vcpu-ubuntu-2404timeout-minutes: 5environment:@@ -222,7 +240,7 @@ jobs:- name: Checkoutuses: actions/checkout@v6with:- ref: ${{ needs.preflight.outputs.ref }}+ ref: ${{ github.sha }}sparse-checkout: |/*!/.repos/@@ -295,15 +313,19 @@ jobs:# machine. node-pty is N-API, so one binary works across all WSL Node versions.build_wsl_node_pty:name: Build WSL node-pty (linux-x64)- needs: [preflight]- if: ${{ !failure() && !cancelled() && needs.preflight.result == 'success' }}+ # Same gating as relay_public_config: only the commit SHA is needed, so this+ # runs alongside preflight. See the condition comment there.+ needs: [check_changes]+ if: |+ !failure() && !cancelled() &&+ (github.event_name != 'schedule' || needs.check_changes.outputs.has_changes == 'true')runs-on: blacksmith-8vcpu-ubuntu-2404timeout-minutes: 15steps:- name: Checkoutuses: actions/checkout@v6with:- ref: ${{ needs.preflight.outputs.ref }}+ ref: ${{ github.sha }}sparse-checkout: |/*!/.repos/@@ -758,9 +780,8 @@ jobs:- name: Align package versions to release versionrun: node scripts/update-release-package-versions.ts "${{ needs.preflight.outputs.version }}"- - name: Build web package- run: vp run --filter @t3tools/web build-+ # The t3 build task depends on @t3tools/web#build, so the web client is+ # built (once) as part of this step.- name: Build CLI packagerun: vp run --filter t3 build