diff --git a/.github/workflows/test32bit.yml b/.github/workflows/test32bit.yml index ead49c50c..4c72bf8e6 100644 --- a/.github/workflows/test32bit.yml +++ b/.github/workflows/test32bit.yml @@ -38,6 +38,12 @@ jobs: - name: Install rust tooling for 32 bit builds run: | rustup target install i686-unknown-linux-gnu + - name: cargo check + run: | + cargo hack check --all-targets --target=i686-unknown-linux-gnu --feature-powerset - name: cargo tests run: | cargo hack test --target=i686-unknown-linux-gnu --feature-powerset + - name: cargo doc tests + run: | + cargo hack test --doc --target=i686-unknown-linux-gnu --feature-powerset diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 36e999966..8fe534743 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,13 +35,15 @@ jobs: - run: sudo apt-get update -y if: matrix.os == 'ubuntu-latest' - name: cargo check (powerset) - run: cargo hack check --feature-powerset --no-dev-deps --exclude-no-default-features - - name: cargo check examples - run: cargo hack check --examples --feature-powerset --exclude-no-default-features - - name: run tests + run: cargo hack check --feature-powerset --no-dev-deps + - name: cargo check examples (powerset) + run: cargo hack check --examples --feature-powerset + - name: run tests (powerset) run: | - cargo hack test --feature-powerset --exclude-no-default-features - cargo hack test --examples --feature-powerset --exclude-no-default-features + cargo hack test --all-targets --feature-powerset + - name: run doc tests (powerset) + run: | + cargo hack test --doc --feature-powerset fmt: name: rust fmt @@ -76,8 +78,7 @@ jobs: toolchain: ${{ matrix.rust }} override: true - uses: Swatinem/rust-cache@v1 + - uses: taiki-e/install-action@cargo-hack - run: rustup component add clippy - - name: clippy (all targets) - run: cargo clippy --all-targets --all-features -- -D warnings - - name: clippy (all targets, all features) - run: cargo clippy --all-targets -- -D warnings + - name: clippy (all targets, feature powerset) + run: cargo hack clippy --all-targets --feature-powerset -- -D warnings diff --git a/.github/workflows/valgrind.yml b/.github/workflows/valgrind.yml index f575f110b..78af223c0 100644 --- a/.github/workflows/valgrind.yml +++ b/.github/workflows/valgrind.yml @@ -35,4 +35,7 @@ jobs: - run: cargo install cargo-valgrind - name: run cargo valgrind run: | - cargo valgrind test --all-features + cargo valgrind test --all-targets --all-features + - name: run cargo valgrind on doc tests + run: | + cargo valgrind test --doc --all-features