From 7b2343e5977a0d9237b53b66f7f23f9a39be96a2 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Thu, 26 Jan 2023 07:12:37 -0800 Subject: [PATCH] Enable sparse protocol in CI --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ea482e82360..76aa79dd313 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -81,6 +81,9 @@ jobs: - name: Configure extra test environment run: echo CARGO_CONTAINER_TESTS=1 >> $GITHUB_ENV if: matrix.os == 'ubuntu-latest' + - name: Enable sparse + run: echo CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse >> $GITHUB_ENV + if: "!contains(matrix.rust, 'stable')" # Deny warnings on CI to avoid warnings getting into the codebase. - run: cargo test --features 'deny-warnings' @@ -140,6 +143,8 @@ jobs: build_std: runs-on: ubuntu-latest + env: + CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse steps: - uses: actions/checkout@v3 - run: rustup update nightly && rustup default nightly