-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from artichoke/lopopolo/setup-miri
Add setup miri action
- Loading branch information
Showing
3 changed files
with
60 additions
and
0 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
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,41 @@ | ||
--- | ||
name: "Miri Toolchain" | ||
description: "Setup a nightly Rust toolchain with miri and rust-src so testing with Miri works" | ||
|
||
inputs: | ||
toolchain: | ||
description: "Rustup toolchain" | ||
required: true | ||
default: "nightly" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install ${{ inputs.toolchain }} toolchain | ||
shell: bash | ||
run: rustup toolchain install "${{ inputs.toolchain }}" --profile minimal --component miri --component rust-src | ||
|
||
- name: Update ${{ inputs.toolchain }} toolchain | ||
shell: bash | ||
run: rustup update "${{ inputs.toolchain }}" | ||
|
||
- name: Set default toolchain to ${{ inputs.toolchain }} | ||
shell: bash | ||
# https://rust-lang.github.io/rustup/overrides.html | ||
run: echo 'RUSTUP_TOOLCHAIN=${{ inputs.toolchain }}' >> "$GITHUB_ENV" | ||
|
||
- name: Show rustup version | ||
shell: bash | ||
run: rustup -Vv | ||
|
||
- name: Show ${{ inputs.toolchain }} rustc version | ||
shell: bash | ||
run: rustc +${{ inputs.toolchain }} -Vv | ||
|
||
- name: Show ${{ inputs.toolchain }} cargo version | ||
shell: bash | ||
run: cargo +${{ inputs.toolchain }} version --verbose | ||
|
||
- name: Show ${{ inputs.toolchain }} miri version | ||
shell: bash | ||
run: cargo +${{ inputs.toolchain }} miri --version |