Skip to content

Commit 7b2343e

Browse files
committed
Enable sparse protocol in CI
1 parent 2ccd950 commit 7b2343e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/main.yml

+5
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ jobs:
8181
- name: Configure extra test environment
8282
run: echo CARGO_CONTAINER_TESTS=1 >> $GITHUB_ENV
8383
if: matrix.os == 'ubuntu-latest'
84+
- name: Enable sparse
85+
run: echo CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse >> $GITHUB_ENV
86+
if: "!contains(matrix.rust, 'stable')"
8487

8588
# Deny warnings on CI to avoid warnings getting into the codebase.
8689
- run: cargo test --features 'deny-warnings'
@@ -140,6 +143,8 @@ jobs:
140143

141144
build_std:
142145
runs-on: ubuntu-latest
146+
env:
147+
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
143148
steps:
144149
- uses: actions/checkout@v3
145150
- run: rustup update nightly && rustup default nightly

0 commit comments

Comments
 (0)