File tree Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 3434 steps :
3535 - uses : actions/checkout@v3
3636
37+ # We're running into strange trouble with Rust 1.76 on Windows,
38+ # let's try to get the latest version.
39+ - name : Get latest stable Rust
40+ if : ${{ matrix.os == 'windows-latest' }}
41+ run : rustup update
42+ - name : Show Rust version (stable toolchain)
43+ run : |
44+ rustup show
45+ rustc -Vv
46+ cargo -V
47+
3748 # Cache the global cargo directory, but NOT the local `target` directory which
3849 # we cannot reuse anyway when the nightly changes (and it grows quite large
3950 # over time).
@@ -57,21 +68,21 @@ jobs:
5768 if : ${{ steps.cache.outputs.cache-hit != 'true' }}
5869 run : cargo install -f rustup-toolchain-install-master
5970
60- - name : Install "master" toolchain
71+ - name : Install miri toolchain
6172 run : |
6273 if [[ ${{ github.event_name }} == 'schedule' ]]; then
6374 echo "Building against latest rustc git version"
6475 git ls-remote https://github.com/rust-lang/rust/ HEAD | cut -f 1 > rust-version
6576 fi
6677 ./miri toolchain --host ${{ matrix.host_target }}
6778
68- - name : Show Rust version
79+ - name : Show Rust version (miri toolchain)
6980 run : |
7081 rustup show
7182 rustc -Vv
7283 cargo -V
7384
74- - name : Test
85+ - name : Test Miri
7586 run : ./ci/ci.sh
7687
7788 style :
Original file line number Diff line number Diff line change 33# Instead of doing just `cargo run --manifest-path .. $@`, we invoke miri-script binary directly. Invoking `cargo run` goes through
44# rustup (that sets it's own environmental variables), which is undesirable.
55MIRI_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
77" $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
55
66:: If any other steps are added, the "|| exit /b" must be appended to early
77:: 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
99
1010:: Forwards all arguments to this file to the executable.
1111:: 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