From 35cd208c0ac483ad0dbbafedd845d8b62952abb1 Mon Sep 17 00:00:00 2001 From: Penguin Date: Fri, 29 May 2026 15:17:20 +0900 Subject: [PATCH 1/2] ci: cache bun install via shared cache + needs:install to pay install once --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1543142..d11baab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,8 +11,29 @@ concurrency: cancel-in-progress: true jobs: + install: + name: install + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Cache bun install + uses: actions/cache@v4 + with: + path: ~/.bun/install/cache + key: bun-${{ runner.os }}-${{ hashFiles('bun.lock') }} + + - name: Install dependencies + run: bun install --frozen-lockfile + check: name: ${{ matrix.task.name }} + needs: install runs-on: ubuntu-latest strategy: fail-fast: false @@ -31,6 +52,12 @@ jobs: with: bun-version: latest + - name: Restore bun install cache + uses: actions/cache@v4 + with: + path: ~/.bun/install/cache + key: bun-${{ runner.os }}-${{ hashFiles('bun.lock') }} + - name: Install dependencies run: bun install --frozen-lockfile From b4cee5fada1a4d74230ac114b65f478c0e5a1fed Mon Sep 17 00:00:00 2001 From: Penguin Date: Fri, 29 May 2026 15:20:37 +0900 Subject: [PATCH 2/2] ci: bump actions/cache v4 -> v5 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d11baab..4f240fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: bun-version: latest - name: Cache bun install - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ~/.bun/install/cache key: bun-${{ runner.os }}-${{ hashFiles('bun.lock') }} @@ -53,7 +53,7 @@ jobs: bun-version: latest - name: Restore bun install cache - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ~/.bun/install/cache key: bun-${{ runner.os }}-${{ hashFiles('bun.lock') }}