chore: Make makefile easier to use

This commit is contained in:
Ed Page 2021-12-07 08:24:13 -06:00
parent cf029dd08f
commit 59f9473336
3 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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:

View File

@ -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}