From b773b23ebba93331e2a0d054a54734a666abc37f Mon Sep 17 00:00:00 2001 From: Keith Williams Date: Wed, 24 Dec 2025 00:49:28 -0300 Subject: [PATCH] refactor: Remove buildjet cache from cache-build action (#26181) * refactor: Remove buildjet cache from cache-build action The buildjet cache was causing cache misses due to unstable hashFiles() keys that included generated Prisma files. Since we now use Turbo Remote Caching, the buildjet cache is redundant and was causing more problems than it solved. This simplifies the cache-build action to just run yarn build, relying on Turbo Remote Caching for build artifact caching. Co-Authored-By: keith@cal.com * fix: Preserve original name and description in cache-build action Co-Authored-By: keith@cal.com --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .github/actions/cache-build/action.yml | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/.github/actions/cache-build/action.yml b/.github/actions/cache-build/action.yml index 72baa43cfc..b5e1fe47f8 100644 --- a/.github/actions/cache-build/action.yml +++ b/.github/actions/cache-build/action.yml @@ -7,29 +7,7 @@ inputs: runs: using: "composite" steps: - - name: Cache production build - uses: buildjet/cache@v4 - id: cache-build - env: - # WARN: Don't touch this cache key. Currently github.sha refers to the latest commit in main - # and not the branch that's attempting to merge to main, which causes CI errors when merged - # to main. - # TODO: Fix this problem if intending to modify this cache key. - cache-name: prod-build - key-1: ${{ inputs.node_version }}-${{ hashFiles('yarn.lock') }} - key-2: ${{ hashFiles('apps/**/**.[jt]s', 'apps/**/**.[jt]sx', 'packages/**/**.[jt]s', 'packages/**/**.[jt]sx', '!**/node_modules') }} - key-3: ${{ github.event.pull_request.number || github.ref }} - key-4: ${{ github.sha }} - key-5: ${{ github.event.pull_request.head.sha }} - with: - path: | - ${{ github.workspace }}/apps/web/.next - ${{ github.workspace }}/apps/web/public/embed - **/.turbo/** - **/dist/** - key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.key-1 }}-${{ env.key-2 }}-${{ env.key-3 }}-${{ env.key-4 }}-${{ env.key-5 }} - run: | export NODE_OPTIONS="--max_old_space_size=8192" yarn build - if: steps.cache-build.outputs.cache-hit != 'true' shell: bash