-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into multivalued-target_family
- Loading branch information
Showing
7 changed files
with
80 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
set -e | ||
cd "$(dirname "$0")" | ||
|
||
# This script needs cargo-binstall installed | ||
# Please check: https://github.com/cargo-bins/cargo-binstall | ||
|
||
cargo binstall cargo-nextest@0.9.52 --secure | ||
|
||
./ci_tools.sh | ||
|
||
# Array containing the configurations (rust and target) | ||
# Please comment out other options if you do not want to test them | ||
configs=( | ||
"stable|x86_64-unknown-linux-gnu" | ||
"stable|x86_64-fortanix-unknown-sgx" | ||
"stable|aarch64-unknown-linux-musl" | ||
"nightly|x86_64-unknown-linux-gnu" | ||
"beta|x86_64-unknown-linux-gnu" | ||
) | ||
|
||
# Path to the script to run | ||
given_script="./ci.sh" | ||
|
||
# Iterate over each configuration | ||
for config in "${configs[@]}"; do | ||
# Split the configuration into rust and target using IFS (Internal Field Separator) | ||
IFS='|' read -r rust target <<< "$config" | ||
echo "Running $given_script with RUST_VERSION=$rust and TARGET=$target" | ||
|
||
# Export the variables to be used in the given script | ||
export RUST_VERSION=$rust | ||
export TARGET=$target | ||
|
||
# Run the given script with the set environment variables | ||
$given_script | ||
|
||
echo "Finished running $given_script with RUST_VERSION=$rust and TARGET=$target" | ||
done | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters