File tree 4 files changed +21
-6
lines changed
4 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 34
34
steps :
35
35
- uses : actions/checkout@v3
36
36
37
+ - name : Show Rust version (stable toolchain)
38
+ run : |
39
+ rustup show
40
+ rustc -Vv
41
+ cargo -V
42
+
37
43
# Cache the global cargo directory, but NOT the local `target` directory which
38
44
# we cannot reuse anyway when the nightly changes (and it grows quite large
39
45
# over time).
@@ -57,21 +63,21 @@ jobs:
57
63
if : ${{ steps.cache.outputs.cache-hit != 'true' }}
58
64
run : cargo install -f rustup-toolchain-install-master
59
65
60
- - name : Install "master" toolchain
66
+ - name : Install miri toolchain
61
67
run : |
62
68
if [[ ${{ github.event_name }} == 'schedule' ]]; then
63
69
echo "Building against latest rustc git version"
64
70
git ls-remote https://github.com/rust-lang/rust/ HEAD | cut -f 1 > rust-version
65
71
fi
66
72
./miri toolchain --host ${{ matrix.host_target }}
67
73
68
- - name : Show Rust version
74
+ - name : Show Rust version (miri toolchain)
69
75
run : |
70
76
rustup show
71
77
rustc -Vv
72
78
cargo -V
73
79
74
- - name : Test
80
+ - name : Test Miri
75
81
run : ./ci/ci.sh
76
82
77
83
style :
Original file line number Diff line number Diff line change @@ -13,6 +13,15 @@ function endgroup {
13
13
14
14
begingroup " Building Miri"
15
15
16
+ # Special Windows hacks
17
+ if [ " $HOST_TARGET " = i686-pc-windows-msvc ]; then
18
+ # The $BASH variable is `/bin/bash` here, but that path does not actually work. There are some
19
+ # hacks in place somewhere to try to paper over this, but the hacks dont work either (see
20
+ # <https://github.com/rust-lang/miri/pull/3402>). So we hard-code the correct location for Github
21
+ # CI instead.
22
+ BASH=" C:/Program Files/Git/usr/bin/bash"
23
+ fi
24
+
16
25
# Determine configuration for installed build
17
26
echo " Installing release version of Miri"
18
27
export RUSTFLAGS=" -D warnings"
@@ -64,7 +73,7 @@ function run_tests {
64
73
done
65
74
66
75
# Check that the benchmarks build and run, but without actually benchmarking.
67
- HYPERFINE=" bash -c" ./miri bench
76
+ HYPERFINE=" ' $BASH ' -c" ./miri bench
68
77
fi
69
78
70
79
# # test-cargo-miri
Original file line number Diff line number Diff line change 3
3
# Instead of doing just `cargo run --manifest-path .. $@`, we invoke miri-script binary directly. Invoking `cargo run` goes through
4
4
# rustup (that sets it's own environmental variables), which is undesirable.
5
5
MIRI_SCRIPT_TARGET_DIR=" $( dirname " $0 " ) " /miri-script/target
6
- cargo build $CARGO_EXTRA_FLAGS -q --target-dir " $MIRI_SCRIPT_TARGET_DIR " --manifest-path " $( dirname " $0 " ) " /miri-script/Cargo.toml
6
+ cargo +stable build $CARGO_EXTRA_FLAGS -q --target-dir " $MIRI_SCRIPT_TARGET_DIR " --manifest-path " $( dirname " $0 " ) " /miri-script/Cargo.toml
7
7
" $MIRI_SCRIPT_TARGET_DIR " /debug/miri-script " $@ "
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ set MIRI_SCRIPT_TARGET_DIR=%0\..\miri-script\target
5
5
6
6
:: If any other steps are added, the "|| exit /b" must be appended to early
7
7
:: return from the script. If not, it will continue execution.
8
- cargo build %CARGO_EXTRA_FLAGS% -q --target-dir %MIRI_SCRIPT_TARGET_DIR% --manifest-path %0 \..\miri-script\Cargo.toml || exit /b
8
+ cargo +stable build %CARGO_EXTRA_FLAGS% -q --target-dir %MIRI_SCRIPT_TARGET_DIR% --manifest-path %0 \..\miri-script\Cargo.toml || exit /b
9
9
10
10
:: Forwards all arguments to this file to the executable.
11
11
:: We invoke the binary directly to avoid going through rustup, which would set some extra
You can’t perform that action at this time.
0 commit comments