From 875f4df33372363992b24c18f028d5532fd7dd81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=83=E5=B7=9D=E7=99=BD=E6=B5=AA?= <1679659@qq.com> Date: Sat, 5 Dec 2026 02:12:36 -0700 Subject: [PATCH] ci: bound job time and skip docs-only pushes A stuck Windows job could hold a runner for the default six hours, so each job now has a timeout: ten minutes for the alpha plan step and thirty for the build jobs. Pushes and pull requests that only touch documentation, readmes or repository templates no longer start the full verification, which keeps the queue for changes that can break the build. --- .github/workflows/alpha-release.yml | 1 + .github/workflows/ci.yml | 17 +++++++++++++++++ .github/workflows/dev-release.yml | 1 + .github/workflows/release.yml | 1 + 4 files changed, 20 insertions(+) diff --git a/.github/workflows/alpha-release.yml b/.github/workflows/alpha-release.yml index cf929b9..53bc66f 100644 --- a/.github/workflows/alpha-release.yml +++ b/.github/workflows/alpha-release.yml @@ -24,6 +24,7 @@ concurrency: jobs: plan: runs-on: ubuntu-latest + timeout-minutes: 10 permissions: contents: write outputs: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 66da195..9b305a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,8 +3,24 @@ name: CI on: push: branches: [main] + paths-ignore: + - 'docs/**' + - 'README.md' + - 'README.*.md' + - 'AGENTS.md' + - '.github/ISSUE_TEMPLATE/**' + - '.github/PULL_REQUEST_TEMPLATE.md' + - '.github/readme/**' pull_request: branches: [main] + paths-ignore: + - 'docs/**' + - 'README.md' + - 'README.*.md' + - 'AGENTS.md' + - '.github/ISSUE_TEMPLATE/**' + - '.github/PULL_REQUEST_TEMPLATE.md' + - '.github/readme/**' concurrency: group: ci-${{ github.event.pull_request.number || github.ref }} @@ -16,6 +32,7 @@ env: jobs: verify: runs-on: windows-latest + timeout-minutes: 30 outputs: rolling: ${{ steps.rolling.outputs.publish }} steps: diff --git a/.github/workflows/dev-release.yml b/.github/workflows/dev-release.yml index 192de02..ed6b869 100644 --- a/.github/workflows/dev-release.yml +++ b/.github/workflows/dev-release.yml @@ -17,6 +17,7 @@ env: jobs: dev-release: runs-on: windows-latest + timeout-minutes: 30 steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 673783e..da3ab89 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,7 @@ env: jobs: release: runs-on: windows-latest + timeout-minutes: 30 steps: - uses: actions/checkout@v4 with: