From f066900016059dff997267b5924bfbd90e4bf8ea Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Mon, 9 Nov 2026 03:22:42 -0800 Subject: [PATCH] ci: isolate browser caches by runner ABI --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 95dd585a..32e0287b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -98,11 +98,14 @@ jobs: with: path: platform/web/node_modules key: web-deps-${{ runner.os }}-${{ hashFiles('platform/web/package-lock.json') }} + - name: Identify Playwright platform + id: playwright-platform + run: echo "abi=${ImageOS:?}-${RUNNER_ARCH:?}" >> "$GITHUB_OUTPUT" - name: Cache Playwright browsers uses: actions/cache@v4 with: path: ~/.cache/ms-playwright - key: playwright-${{ runner.os }}-${{ hashFiles('platform/web/package-lock.json') }} + key: playwright-${{ steps.playwright-platform.outputs.abi }}-${{ hashFiles('platform/web/package-lock.json') }} - name: Install Web dependencies run: | if [ "${{ steps.web-node-modules.outputs.cache-hit }}" != "true" ]; then