Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit ac655ce

Browse files
committed
Auto merge of rust-lang#2490 - RalfJung:ci, r=RalfJung
make sure all builds are locked on CI
2 parents 39c606f + ecb8ac5 commit ac655ce

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

ci.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22
set -euo pipefail
33
set -x
44

5-
# Determine configuration
5+
# Determine configuration for installed build
6+
echo "Installing release version of Miri"
67
export RUSTFLAGS="-D warnings"
78
export CARGO_INCREMENTAL=0
8-
9-
# Prepare
10-
echo "Build and install miri"
119
./miri install # implicitly locked
10+
11+
# Prepare debug build for direct `./miri` invocations
12+
echo "Building debug version of Miri"
13+
export CARGO_EXTRA_FLAGS="--locked"
1214
./miri check --no-default-features # make sure this can be built
1315
./miri check --all-features # and this, too
14-
./miri build --all-targets --locked # the build that all the `./miri test` below will use
16+
./miri build --all-targets # the build that all the `./miri test` below will use
1517
echo
1618

1719
# Test
@@ -23,13 +25,13 @@ function run_tests {
2325
fi
2426

2527
## ui test suite
26-
./miri test --locked
28+
./miri test
2729
if [ -z "${MIRI_TEST_TARGET+exists}" ]; then
2830
# Only for host architecture: tests with optimizations (`-O` is what cargo passes, but crank MIR
2931
# optimizations up all the way).
3032
# Optimizations change diagnostics (mostly backtraces), so we don't check them
3133
#FIXME(#2155): we want to only run the pass and panic tests here, not the fail tests.
32-
MIRIFLAGS="-O -Zmir-opt-level=4" MIRI_SKIP_UI_CHECKS=1 ./miri test --locked -- tests/{pass,panic}
34+
MIRIFLAGS="-O -Zmir-opt-level=4" MIRI_SKIP_UI_CHECKS=1 ./miri test -- tests/{pass,panic}
3335
fi
3436

3537
## test-cargo-miri
@@ -70,7 +72,7 @@ function run_tests_minimal {
7072
echo "Testing MINIMAL host architecture: only testing $@"
7173
fi
7274

73-
./miri test --locked -- "$@"
75+
./miri test -- "$@"
7476
}
7577

7678
# host

0 commit comments

Comments
 (0)