mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
ab39f1c3c8
**Description**: - Disable `crev` action. - Cleanup compilation check matrix. - Update `cargo-hack`.
18 lines
415 B
Bash
Executable File
18 lines
415 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eu
|
|
|
|
echo "Checking if '$1' has feature 'concurrent'"
|
|
|
|
# Get crates with feature named `concurrent`
|
|
CRATES=$(./scripts/cargo/list-crates.sh | \
|
|
jq -r 'select(.features.concurrent != null) | .name')
|
|
|
|
if [[ "swc" == "$1" ]]; then
|
|
echo "Skipping swc itself"
|
|
exit 0
|
|
fi
|
|
|
|
if [[ $CRATES == *"$1"* ]]; then
|
|
cargo test --color always -p $1 --all-targets --features "$1/concurrent"
|
|
fi |