From b517448fd7e11b09e0f887eebb6ad2442b9c8ce5 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Tue, 21 Mar 2023 11:50:00 +0100 Subject: [PATCH] Speed up workflow by using sparce Cargo index for crates.io --- .gitea/workflows/cargo.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitea/workflows/cargo.yml b/.gitea/workflows/cargo.yml index 619920e..9ed42e8 100644 --- a/.gitea/workflows/cargo.yml +++ b/.gitea/workflows/cargo.yml @@ -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: