Skip to content

improve cargo hack #331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/test32bit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
21 changes: 11 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
5 changes: 4 additions & 1 deletion .github/workflows/valgrind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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