Skip to content

Commit 561dce7

Browse files
committed
sanity-check for HOST_TARGET
1 parent bba9663 commit 561dce7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/tools/miri/ci/ci.sh

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
set -euo pipefail
2+
set -eu
33

44
function begingroup {
55
echo "::group::$@"
@@ -11,6 +11,17 @@ function endgroup {
1111
echo "::endgroup"
1212
}
1313

14+
begingroup "Sanity-check environment"
15+
16+
# Ensure the HOST_TARGET is what it should be.
17+
if ! rustc -vV | grep -q "^host: $HOST_TARGET\$"; then
18+
echo "This runner should be using host target $HOST_TARGET but rustc disagrees:"
19+
rustc -vV
20+
exit 1
21+
fi
22+
23+
endgroup
24+
1425
begingroup "Building Miri"
1526

1627
# Global configuration

0 commit comments

Comments
 (0)