Skip to content

Commit b773b23

Browse files
refactor: Remove buildjet cache from cache-build action (calcom#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 <keithwillcode@gmail.com> * fix: Preserve original name and description in cache-build action Co-Authored-By: keith@cal.com <keithwillcode@gmail.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 99b82c5 commit b773b23

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

.github/actions/cache-build/action.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,7 @@ inputs:
77
runs:
88
using: "composite"
99
steps:
10-
- name: Cache production build
11-
uses: buildjet/cache@v4
12-
id: cache-build
13-
env:
14-
# WARN: Don't touch this cache key. Currently github.sha refers to the latest commit in main
15-
# and not the branch that's attempting to merge to main, which causes CI errors when merged
16-
# to main.
17-
# TODO: Fix this problem if intending to modify this cache key.
18-
cache-name: prod-build
19-
key-1: ${{ inputs.node_version }}-${{ hashFiles('yarn.lock') }}
20-
key-2: ${{ hashFiles('apps/**/**.[jt]s', 'apps/**/**.[jt]sx', 'packages/**/**.[jt]s', 'packages/**/**.[jt]sx', '!**/node_modules') }}
21-
key-3: ${{ github.event.pull_request.number || github.ref }}
22-
key-4: ${{ github.sha }}
23-
key-5: ${{ github.event.pull_request.head.sha }}
24-
with:
25-
path: |
26-
${{ github.workspace }}/apps/web/.next
27-
${{ github.workspace }}/apps/web/public/embed
28-
**/.turbo/**
29-
**/dist/**
30-
key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.key-1 }}-${{ env.key-2 }}-${{ env.key-3 }}-${{ env.key-4 }}-${{ env.key-5 }}
3110
- run: |
3211
export NODE_OPTIONS="--max_old_space_size=8192"
3312
yarn build
34-
if: steps.cache-build.outputs.cache-hit != 'true'
3513
shell: bash

0 commit comments

Comments
 (0)