From 651110bf551a986e857ef332e1a0e4fbc56b40a4 Mon Sep 17 00:00:00 2001 From: 0xLeif Date: Sun, 14 Jun 2026 12:16:34 -0600 Subject: [PATCH] Update: standardize GitHub Actions (path filters, concurrency, runners) Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/ci.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f5d81c..f39788b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,21 +3,36 @@ name: CI on: push: branches: [main] + paths: + - src/** + - Cargo.toml + - Cargo.lock + - .github/workflows/ci.yml pull_request: branches: [main] + paths: + - src/** + - Cargo.toml + - Cargo.lock + - .github/workflows/ci.yml env: CARGO_TERM_COLOR: always +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + 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 +41,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