From e02067b3a5763c000f019f10729153e14488c40d Mon Sep 17 00:00:00 2001 From: hanafish <1106510024@qq.com> Date: Mon, 10 Aug 2026 13:37:26 +0800 Subject: [PATCH] ci: reduce macOS runner queue pressure --- .github/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ff38cc601..272e830b6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,11 +16,17 @@ on: - release - master +# A new push makes an older run for the same PR obsolete. Cancel it before it +# can consume one of the organization's limited hosted-runner slots. +concurrency: + group: ci-pr-${{ github.event.pull_request.number }} + cancel-in-progress: true + jobs: # ── Frontend ──────────────────────────────────────────────────────────────── frontend: name: Frontend (typecheck · lint · test) - runs-on: macos-latest + runs-on: ubuntu-latest steps: - name: Checkout @@ -39,7 +45,7 @@ jobs: uses: actions/cache@v5 with: path: node_modules - key: node-modules-${{ hashFiles('pnpm-lock.yaml') }} + key: node-modules-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} - name: Install dependencies run: pnpm install --frozen-lockfile