sanity-check for HOST_TARGET
This commit is contained in:
parent
bba9663621
commit
561dce772f
1 changed files with 12 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
set -eu
|
||||
|
||||
function begingroup {
|
||||
echo "::group::$@"
|
||||
|
|
@ -11,6 +11,17 @@ function endgroup {
|
|||
echo "::endgroup"
|
||||
}
|
||||
|
||||
begingroup "Sanity-check environment"
|
||||
|
||||
# Ensure the HOST_TARGET is what it should be.
|
||||
if ! rustc -vV | grep -q "^host: $HOST_TARGET\$"; then
|
||||
echo "This runner should be using host target $HOST_TARGET but rustc disagrees:"
|
||||
rustc -vV
|
||||
exit 1
|
||||
fi
|
||||
|
||||
endgroup
|
||||
|
||||
begingroup "Building Miri"
|
||||
|
||||
# Global configuration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue