chore: parallelize feature-check CI with 4 matrix partitions
Use cargo hack's --partition flag to split the feature powerset across 4 parallel jobs, reducing wall-clock time for the feature-check step. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
7bf64d6cf6
commit
b3bf4ccb71
@@ -98,8 +98,12 @@ jobs:
|
|||||||
RUSTDOCFLAGS: -D warnings
|
RUSTDOCFLAGS: -D warnings
|
||||||
|
|
||||||
feature-check:
|
feature-check:
|
||||||
name: Feature Combinations
|
name: Feature Combinations (${{ matrix.partition }}/4)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
partition: [1, 2, 3, 4]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
@@ -110,7 +114,7 @@ jobs:
|
|||||||
uses: taiki-e/install-action@cargo-hack
|
uses: taiki-e/install-action@cargo-hack
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
- name: Check feature powerset
|
- name: Check feature powerset
|
||||||
run: cargo hack check --feature-powerset --no-dev-deps
|
run: cargo hack check --feature-powerset --no-dev-deps --partition ${{ matrix.partition }}/4
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
name: Coverage
|
name: Coverage
|
||||||
|
|||||||
Reference in New Issue
Block a user