mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 02:06:08 +03:00
ab39f1c3c8
**Description**: - Disable `crev` action. - Cleanup compilation check matrix. - Update `cargo-hack`.
21 lines
539 B
Bash
Executable File
21 lines
539 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eu
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
|
|
crate=$1
|
|
|
|
echo "Running cargo hack for crate $crate"
|
|
|
|
# yq query syntax is weird, so we have to use jq
|
|
json_str="$(yq -o=json $SCRIPT_DIR/tests.yml)"
|
|
|
|
|
|
if echo $json_str | jq -e ".check.\"$crate\"" > /dev/null; then
|
|
check_commands=$(echo $json_str | jq -e -r ".check.\"$crate\" | .[]")
|
|
|
|
while IFS= read -r line; do
|
|
echo " Running '$line'"
|
|
(cd "crates/$crate" && $line)
|
|
done <<< "$check_commands"
|
|
fi |