-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #127119 - RalfJung:miri-sync, r=RalfJung
Miri subtree update r? `@ghost`
- Loading branch information
Showing
63 changed files
with
906 additions
and
417 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: "Miri CI setup" | ||
description: "Sets up Miri CI" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Show Rust version (stable toolchain) | ||
run: | | ||
rustup show | ||
rustc -Vv | ||
cargo -V | ||
shell: bash | ||
|
||
# Cache the global cargo directory, but NOT the local `target` directory which | ||
# we cannot reuse anyway when the nightly changes (and it grows quite large | ||
# over time). | ||
- name: Add cache for cargo | ||
id: cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
# Taken from <https://doc.rust-lang.org/nightly/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci>. | ||
# Cache package/registry information | ||
~/.cargo/registry/index | ||
~/.cargo/registry/cache | ||
~/.cargo/git/db | ||
# Cache installed binaries | ||
~/.cargo/bin | ||
~/.cargo/.crates.toml | ||
~/.cargo/.crates2.json | ||
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock', '.github/workflows/**/*.yml') }} | ||
restore-keys: cargo-${{ runner.os }} | ||
|
||
- name: Install rustup-toolchain-install-master | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: cargo install -f rustup-toolchain-install-master hyperfine | ||
shell: bash | ||
|
||
- name: Install "master" toolchain | ||
run: | | ||
if [[ ${{ github.event_name }} == 'schedule' ]]; then | ||
echo "Building against latest rustc git version" | ||
git ls-remote https://github.com/rust-lang/rust/ HEAD | cut -f 1 > rust-version | ||
fi | ||
./miri toolchain | ||
shell: bash | ||
|
||
- name: Show Rust version (miri toolchain) | ||
run: | | ||
rustup show | ||
rustc -Vv | ||
cargo -V | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
fn main() { | ||
// Don't rebuild miri when nothing changed. | ||
println!("cargo:rerun-if-changed=build.rs"); | ||
// Re-export the TARGET environment variable so it can | ||
// be accessed by miri. | ||
// Re-export the TARGET environment variable so it can be accessed by miri. Needed to know the | ||
// "host" triple inside Miri. | ||
let target = std::env::var("TARGET").unwrap(); | ||
println!("cargo:rustc-env=TARGET={target}"); | ||
// Allow some cfgs. | ||
println!("cargo::rustc-check-cfg=cfg(bootstrap)"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
f6b4b71ef10307201b52c17b0f9dcf9557cd90ba | ||
9ed2ab3790ff41bf741dd690befd6a1c1e2b23ca |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.