Skip to content

Commit

Permalink
chore: Make makefile easier to use
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Dec 7, 2021
1 parent cf029dd commit 59f9473
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ jobs:
run: make build-${{matrix.features}}
- name: Test
run: make test-${{matrix.features}}
- name: Test (benches)
run: make test-${{matrix.features}} ARGS='--workspace --benches'
check:
name: Check
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/rust-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
run: make build-${{matrix.features}}
- name: Test
run: make test-${{matrix.features}}
- name: Test (benches)
run: make test-${{matrix.features}} ARGS='--workspace --benches'
rustfmt:
name: rustfmt
strategy:
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ build-%:
cargo test ${_FEATURES_${@:build-%=%}} --all-targets --no-run ${ARGS}

test-%:
cargo test ${_FEATURES_${@:test-%=%}} --all-targets ${ARGS}
cargo test ${_FEATURES_${@:test-%=%}} --doc ${ARGS}
cargo test ${_FEATURES_${@:test-%=%}} ${ARGS}

0 comments on commit 59f9473

Please sign in to comment.