From 5b00c6cab948f52c62b117d5e65e2ef2c5207fca Mon Sep 17 00:00:00 2001 From: David Pietrocola Date: Wed, 1 May 2024 23:43:35 -0400 Subject: [PATCH] ci: tries caching bun deps and nextjs build --- .github/workflows/my-workflow.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/my-workflow.yaml b/.github/workflows/my-workflow.yaml index 59a0348..6652f76 100644 --- a/.github/workflows/my-workflow.yaml +++ b/.github/workflows/my-workflow.yaml @@ -18,10 +18,12 @@ jobs: steps: - uses: actions/cache@v4 with: - path: ~/.bun/install/cache - key: ${{ runner.os }}-${{ matrix.bun }}-bun-${{ hashFiles('**/bun.lockb') }} + path: | + ~/.bun/install/cache + ${{ github.workspace }}/.next/cache + key: ${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lockb') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }} restore-keys: | - ${{ runner.os }}-${{ matrix.bun }}-bun- + ${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lockb') }}- - uses: actions/checkout@v4 - run: bun install - run: bun run build