Skip to content

Commit df8d15a

Browse files
claudeglslang
authored andcommitted
ci: cache cargo registry and use pre-built nextest binary
Replace `cargo install cargo-nextest --locked` with taiki-e/install-action which downloads a pre-built nextest binary instead of compiling from source. Add Swatinem/rust-cache to cache the cargo registry and build artifacts across runs. https://claude.ai/code/session_01EVGjCzKRDTgPEw6dJBekwJ
1 parent acfcb96 commit df8d15a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,16 @@ jobs:
2828
vs-architecture: ${{ matrix.os == 'windows-11-arm' && 'arm64' || 'x64' }}
2929
- name: Install Rust
3030
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
31+
- uses: Swatinem/rust-cache@v2
32+
with:
33+
key: ${{ matrix.os }}-${{ matrix.toolchain }}
3134
- name: Cargo fmt
3235
run: |
3336
rustup component add rustfmt
3437
cargo fmt --all -- --check
3538
- name: Cargo update
3639
run: cargo update
37-
- name: Install cargo-nextest
38-
run: cargo install cargo-nextest --locked
40+
- uses: taiki-e/install-action@nextest
3941
- name: Build
4042
run: |
4143
echo "=== Starting Rust build ==="

0 commit comments

Comments
 (0)