From 9607a1b4fbc7cdfab504decfaa264ab603a207de Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 14 Jun 2026 12:19:52 -0600 Subject: [PATCH] Update: standardize GitHub Actions (path filters, concurrency, runners) Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++-- .github/workflows/pages.yml | 3 ++- .github/workflows/release.yml | 3 ++- 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f5d81c..6a82657 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,8 +3,26 @@ name: CI on: push: branches: [main] + paths: + - src/** + - tests/** + - benches/** + - build.rs + - Cargo.toml + - .github/workflows/ci.yml pull_request: branches: [main] + paths: + - src/** + - tests/** + - benches/** + - build.rs + - Cargo.toml + - .github/workflows/ci.yml + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true env: CARGO_TERM_COLOR: always @@ -13,11 +31,12 @@ jobs: check: name: Check runs-on: ${{ matrix.os }} + timeout-minutes: 30 strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - run: cargo build --release @@ -26,8 +45,9 @@ jobs: lint: name: Lint runs-on: ubuntu-latest + timeout-minutes: 20 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: dtolnay/rust-toolchain@stable with: components: clippy, rustfmt diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 4fb8493..115b309 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -17,8 +17,9 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest + timeout-minutes: 15 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: actions/configure-pages@v5 - uses: actions/upload-pages-artifact@v3 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8066580..a8c8ce2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,7 @@ jobs: build: name: Build ${{ matrix.target }} runs-on: ${{ matrix.os }} + timeout-minutes: 30 strategy: matrix: include: @@ -23,7 +24,7 @@ jobs: - target: x86_64-pc-windows-msvc os: windows-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: dtolnay/rust-toolchain@stable with: targets: ${{ matrix.target }}