Skip to content

Commit aab7d2e

Browse files
ammarioclaude
andcommitted
perf: use pre-built nextest binaries in CI
Replace cargo install with taiki-e/install-action for nextest to avoid compiling from source. This reduces installation time from ~72 seconds to just a few seconds on macOS CI runners. The action automatically caches the binary and handles version updates. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0aadeaf commit aab7d2e

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/tests.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ jobs:
3131
shared-key: ${{ runner.os }}
3232

3333
- name: Install nextest
34-
run: cargo install cargo-nextest --locked
34+
uses: taiki-e/install-action@nextest
35+
with:
36+
tool: nextest
3537

3638
- name: Run all tests
3739
run: cargo nextest run --profile ci
@@ -80,11 +82,15 @@ jobs:
8082
with:
8183
shared-key: ${{ runner.os }}
8284

83-
- name: Setup Rust environment and install nextest
85+
- name: Setup Rust environment
8486
run: |
8587
source ~/.cargo/env
8688
rustup default stable
87-
cargo install cargo-nextest || true
89+
90+
- name: Install nextest
91+
uses: taiki-e/install-action@nextest
92+
with:
93+
tool: nextest
8894

8995
- name: Fix target directory permissions from previous runs
9096
run: |

0 commit comments

Comments
 (0)