Speed up workflow by using sparce Cargo index for crates.io
Check Details
Lints Details
Test Suite Details

This commit is contained in:
Paul van Tilburg 2023-03-21 11:50:00 +01:00
parent 3de66dbd41
commit b517448fd7
Signed by: paul
GPG Key ID: C6DE073EDA9EEC4D
1 changed files with 9 additions and 0 deletions

View File

@ -20,6 +20,9 @@ jobs:
toolchain: stable
override: true
- name: Use sparse Cargo index for crates.io
run: echo -e '[registries.crates-io]\nprotocol = "sparse"' >> /root/.cargo/config.toml
- name: Run cargo check
uses: https://github.com/actions-rs/cargo@v1
with:
@ -39,6 +42,9 @@ jobs:
toolchain: stable
override: true
- name: Use sparse Cargo index for crates.io
run: echo -e '[registries.crates-io]\nprotocol = "sparse"' >> /root/.cargo/config.toml
- name: Run cargo test
uses: https://github.com/actions-rs/cargo@v1
with:
@ -60,6 +66,9 @@ jobs:
override: true
components: rustfmt, clippy
- name: Use sparse Cargo index for crates.io
run: echo -e '[registries.crates-io]\nprotocol = "sparse"' >> /root/.cargo/config.toml
- name: Run cargo fmt
uses: https://github.com/actions-rs/cargo@v1
with: