From c7355395c9681bdd88db6b44ca99dbed1ef40c10 Mon Sep 17 00:00:00 2001 From: Mathieu Lala Date: Sat, 14 Jan 2023 13:58:51 +0100 Subject: [PATCH 1/3] feat: add a feature powerset check --- .github/workflows/build.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7dabfb37..e11278fb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -88,6 +88,18 @@ jobs: command: test args: ${{matrix.flags}} + feature_powerset: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@v1 + with: + toolchain: stable + - uses: taiki-e/install-action@v2 + with: + tool: cargo-hack@0.5.25 + - run: cargo hack check --feature-powerset --depth 2 --no-dev-deps --exclude-features "stdweb wasm-bindgen f32_float" + # no-std builds are a bit more extensive to test no_std_build: name: NoStdBuild From 933ffbc3fc4f8cd0a8533841fd84409bc3049eca Mon Sep 17 00:00:00 2001 From: Mathieu Lala Date: Sun, 5 Feb 2023 13:16:55 +0100 Subject: [PATCH 2/3] feat: for a manual job for --- .github/workflows/build.yml | 12 ------------ .github/workflows/ci.yaml | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e11278fb..7dabfb37 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -88,18 +88,6 @@ jobs: command: test args: ${{matrix.flags}} - feature_powerset: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: dtolnay/rust-toolchain@v1 - with: - toolchain: stable - - uses: taiki-e/install-action@v2 - with: - tool: cargo-hack@0.5.25 - - run: cargo hack check --feature-powerset --depth 2 --no-dev-deps --exclude-features "stdweb wasm-bindgen f32_float" - # no-std builds are a bit more extensive to test no_std_build: name: NoStdBuild diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..3e8e342a --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,25 @@ +name: Manual CI + +on: + workflow_dispatch: + inputs: + depth: + description: "Specify a max number of simultaneous feature flags" + required: true + type: string + default: "2" + +jobs: + feature_powerset: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@v1 + with: + toolchain: stable + - uses: taiki-e/install-action@v2 + with: + tool: cargo-hack@0.5.25 + - run: cargo hack check --feature-powerset --depth ${{ inputs.depth }} --no-dev-deps --exclude-features $FEATURE_EXCLUDE + env: + FEATURE_EXCLUDE: "no_std stdweb wasm-bindgen f32_float only_i32 unicode-xid-ident bin-features" From da2d3adaef9715ae2280c3bb6a98531e58ea0427 Mon Sep 17 00:00:00 2001 From: Mathieu Lala Date: Sun, 5 Feb 2023 13:22:44 +0100 Subject: [PATCH 3/3] fix: exclude feature --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3e8e342a..6b751bc8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,6 +20,6 @@ jobs: - uses: taiki-e/install-action@v2 with: tool: cargo-hack@0.5.25 - - run: cargo hack check --feature-powerset --depth ${{ inputs.depth }} --no-dev-deps --exclude-features $FEATURE_EXCLUDE + - run: cargo hack check --feature-powerset --depth ${{ inputs.depth }} --no-dev-deps --exclude-features "$FEATURE_EXCLUDE" env: FEATURE_EXCLUDE: "no_std stdweb wasm-bindgen f32_float only_i32 unicode-xid-ident bin-features"