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.
Revert "Cache desktop build assets in CI and release workflows" (#2568)
Julius Marmingea74ed8ed32c2
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex c4ec149d5..e3329b1da 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -25,9 +25,8 @@ jobs:with:node-version-file: package.json- - id: bun_turbo_cache- name: Restore Bun and Turbo cache- uses: actions/cache/restore@v5+ - name: Cache Bun and Turbo+ uses: actions/cache@v5with:path: |~/.bun/install/cache@@ -36,9 +35,8 @@ jobs:restore-keys: |${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}-- - id: playwright_cache- name: Restore Playwright browsers- uses: actions/cache/restore@v5+ - name: Cache Playwright browsers+ uses: actions/cache@v5with:path: ~/.cache/ms-playwrightkey: ${{ runner.os }}-playwright-${{ hashFiles('bun.lock') }}@@ -71,22 +69,6 @@ jobs:- name: Build desktop pipelinerun: bun run build:desktop- - name: Save Playwright browsers- if: steps.playwright_cache.outputs.cache-hit != 'true'- uses: actions/cache/save@v5- with:- path: ~/.cache/ms-playwright- key: ${{ runner.os }}-playwright-${{ hashFiles('bun.lock') }}-- - name: Save Bun and Turbo cache- if: steps.bun_turbo_cache.outputs.cache-hit != 'true'- uses: actions/cache/save@v5- with:- path: |- ~/.bun/install/cache- .turbo- key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}-${{ hashFiles('turbo.json') }}-- name: Verify preload bundle outputrun: |test -f apps/desktop/dist-electron/preload.cjsdiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex eace4caec..4409c54c8 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -311,9 +311,7 @@ jobs:shell: bashrun: |set -euo pipefail- asset_dir="release-artifacts/desktop-${{ matrix.platform }}-${{ matrix.arch }}"- rm -rf "$asset_dir"- mkdir -p "$asset_dir"+ mkdir -p release-publishshopt -s nullglobfor pattern in \@@ -324,13 +322,13 @@ jobs:"release/*.blockmap" \"release/*.yml"; dofor file in $pattern; do- cp "$file" "$asset_dir"/+ cp "$file" release-publish/donedoneif [[ "${{ matrix.platform }}" == "mac" && "${{ matrix.arch }}" != "arm64" ]]; thenshopt -s nullglob- for manifest in "$asset_dir"/*-mac.yml; do+ for manifest in release-publish/*-mac.yml; domv "$manifest" "${manifest%.yml}-${{ matrix.arch }}.yml"donefi@@ -342,23 +340,17 @@ jobs:# canonical manifest per channel.# if [[ "${{ matrix.platform }}" == "win" ]]; then# shopt -s nullglob- # for manifest in "$asset_dir"/*.yml; do+ # for manifest in release-publish/*.yml; do# mv "$manifest" "${manifest%.yml}-win-${{ matrix.arch }}.yml"# done# fi- assets=("$asset_dir"/*)- if (( ${#assets[@]} == 0 )); then- echo "No release assets were collected for ${{ matrix.platform }} ${{ matrix.arch }}." >&2- exit 1- fi-- - name: Save build artifacts- uses: actions/cache/save@v5+ - name: Upload build artifacts+ uses: actions/upload-artifact@v7with:- path: release-artifacts/desktop-${{ matrix.platform }}-${{ matrix.arch }}- key: release-assets-${{ github.run_id }}-${{ matrix.platform }}-${{ matrix.arch }}-${{ github.run_attempt }}- enableCrossOsArchive: true+ name: desktop-${{ matrix.platform }}-${{ matrix.arch }}+ path: release-publish/*+ if-no-files-found: errorpublish_cli:name: Publish CLI to npm@@ -431,70 +423,12 @@ jobs:- name: Install dependenciesrun: bun install --frozen-lockfile --filter=@t3tools/scripts- # Keep these restore steps in sync with the desktop build matrix.- # Cache restore cannot enumerate a key pattern like download-artifact did.- - name: Restore macOS arm64 desktop assets- uses: actions/cache/restore@v5- with:- path: release-artifacts/desktop-mac-arm64- key: release-assets-${{ github.run_id }}-mac-arm64-${{ github.run_attempt }}- restore-keys: |- release-assets-${{ github.run_id }}-mac-arm64-- fail-on-cache-miss: true- enableCrossOsArchive: true-- - name: Restore macOS x64 desktop assets- uses: actions/cache/restore@v5- with:- path: release-artifacts/desktop-mac-x64- key: release-assets-${{ github.run_id }}-mac-x64-${{ github.run_attempt }}- restore-keys: |- release-assets-${{ github.run_id }}-mac-x64-- fail-on-cache-miss: true- enableCrossOsArchive: true-- - name: Restore Linux x64 desktop assets- uses: actions/cache/restore@v5+ - name: Download all desktop artifacts+ uses: actions/download-artifact@v8with:- path: release-artifacts/desktop-linux-x64- key: release-assets-${{ github.run_id }}-linux-x64-${{ github.run_attempt }}- restore-keys: |- release-assets-${{ github.run_id }}-linux-x64-- fail-on-cache-miss: true- enableCrossOsArchive: true-- - name: Restore Windows x64 desktop assets- uses: actions/cache/restore@v5- with:- path: release-artifacts/desktop-win-x64- key: release-assets-${{ github.run_id }}-win-x64-${{ github.run_attempt }}- restore-keys: |- release-assets-${{ github.run_id }}-win-x64-- fail-on-cache-miss: true- enableCrossOsArchive: true-- - name: Stage desktop assets- shell: bash- run: |- set -euo pipefail- rm -rf release-assets- mkdir -p release-assets-- shopt -s nullglob- for dir in release-artifacts/desktop-*; do- files=("$dir"/*)- if (( ${#files[@]} == 0 )); then- echo "No release assets were restored from $dir." >&2- exit 1- fi- cp "${files[@]}" release-assets/- done-- assets=(release-assets/*)- if (( ${#assets[@]} == 0 )); then- echo "No desktop release assets were staged." >&2- exit 1- fi+ pattern: desktop-*+ merge-multiple: true+ path: release-assets- name: Merge macOS updater manifestsrun: |