sanity-check for HOST_TARGET

This commit is contained in:
Ralf Jung 2025-02-24 10:57:57 +01:00
parent bba9663621
commit 561dce772f

View file

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