From edf16a6f106379681509f229b6e45539fa3eebdb Mon Sep 17 00:00:00 2001 From: Max Inden Date: Tue, 23 Jul 2024 14:01:43 +0200 Subject: [PATCH] ci(rust.yml): add workflow testing feature permutations --- .github/workflows/rust.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 86f16e651..3bfc9a67e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -149,3 +149,16 @@ jobs: api-level: ${{ matrix.api-level }} arch: ${{ matrix.emulator-arch }} script: .github/workflows/rust-android-run-tests-on-emulator.sh + + features: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + env: + RUSTFLAGS: -Dwarnings + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - uses: taiki-e/install-action@cargo-hack + - run: cargo hack check --feature-powerset --optional-deps --no-dev-deps --ignore-unknown-features --ignore-private --group-features runtime-async-std,async-io,async-std --group-features runtime-smol,async-io,smol