Scheduling infrastructure for absolutely everyone.
Caching is hard
zomarscc4192817bbd
diff --git a/.github/actions/cache-build/action.yml b/.github/actions/cache-build/action.ymlindex a57da06a7a0..251c9430a44 100644--- a/.github/actions/cache-build/action.yml+++ b/.github/actions/cache-build/action.yml@@ -11,13 +11,13 @@ runs:cache-name: prod-buildkey-1: ${{ env.node_version }}-${{ hashFiles('yarn.lock') }}key-2: ${{ hashFiles('apps/web/next.config.js') }}+ key-3: ${{ hashFiles('**.[jt]s', '**.[jt]sx') }}+ with:with:path: |- apps/web/.next- node_modules/.cache/turbo+ ${{ github.workspace }}/apps/web/.next/cache**/.turbo/****/dist/**- key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.key-1 }}-${{ env.key-2 }}-${{ github.sha }}+ key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.key-1 }}-${{ env.key-2 }}-${{ env.key-3 }}-${{ github.sha }}restore-keys: |- ${{ runner.os }}-${{ env.cache-name }}-${{ env.key-1 }}-${{ env.key-2 }}-- ${{ runner.os }}-${{ env.cache-name }}-${{ env.key-1 }}-+ ${{ runner.os }}-${{ env.cache-name }}-${{ env.key-1 }}-${{ env.key-2 }}-${{ env.key-3 }}-diff --git a/.github/workflows/production-build.yml b/.github/workflows/production-build.ymlindex de22d21e7e8..6c0c2658e53 100644--- a/.github/workflows/production-build.yml+++ b/.github/workflows/production-build.yml@@ -49,6 +49,9 @@ jobs:steps:- uses: actions/checkout@v3- uses: ./.github/actions/yarn-install+ - uses: ./.github/actions/cache-db+ with:+ DATABASE_URL: ${{ env.DATABASE_URL }}- uses: ./.github/actions/yarn-buildwith:# GitHub Composite actions cannot read secrets, we have to pass them in here@@ -80,6 +83,3 @@ jobs:NEXT_PUBLIC_IS_E2E: ${{ env.NEXT_PUBLIC_IS_E2E }}TURBO_TOKEN: ${{ env.TURBO_TOKEN }}TURBO_TEAM: ${{ env.TURBO_TEAM }}- - uses: ./.github/actions/cache-db- with:- DATABASE_URL: ${{ env.DATABASE_URL }}