From cbb81a9ec3162c501d7040f3bbdc5b88e2699efa Mon Sep 17 00:00:00 2001 From: Spencer Ferris <3319370+spencewenski@users.noreply.github.com> Date: Sun, 7 Apr 2024 02:43:33 -0700 Subject: [PATCH] Skip and group features to reduce powerset size We run out of space on the default github action runners when we naively run `cargo hack` powerset. Attempt to reduce the size of the powerset by skipping the default feature, and grouping related features together. --- .github/workflows/feature_powerset.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/feature_powerset.yml b/.github/workflows/feature_powerset.yml index f2f4f40f..dc419504 100644 --- a/.github/workflows/feature_powerset.yml +++ b/.github/workflows/feature_powerset.yml @@ -51,8 +51,8 @@ jobs: - uses: Swatinem/rust-cache@v2 - uses: taiki-e/install-action@cargo-hack - name: Test - run: cargo hack test --no-fail-fast --feature-powerset --workspace + run: cargo hack test --no-fail-fast --feature-powerset --skip default --group-features jwt-ietf,jwt --group-features jwt-openid,jwt --workspace - name: Check - run: cargo hack check --feature-powerset --no-dev-deps --workspace + run: cargo hack check --feature-powerset --no-dev-deps --skip default --group-features jwt-ietf,jwt --group-features jwt-openid,jwt --workspace - name: Clippy - run: cargo hack clippy --workspace --all-targets --feature-powerset -- -D warnings + run: cargo hack clippy --workspace --all-targets --feature-powerset --skip default --group-features jwt-ietf,jwt --group-features jwt-openid,jwt -- -D warnings