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: