Skip to content

Commit 61a25fd

Browse files
committed
make sure we install the toolchain for the intended host target
1 parent 561dce7 commit 61a25fd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/tools/miri/.github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
steps:
3131
- uses: actions/checkout@v4
3232
- uses: ./.github/workflows/setup
33+
with:
34+
toolchain_flags: "--host ${{ matrix.host_target }}"
3335

3436
# The `style` job only runs on Linux; this makes sure the Windows-host-specific
3537
# code is also covered by clippy.

src/tools/miri/.github/workflows/setup/action.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: "Miri CI setup"
22
description: "Sets up Miri CI"
3+
inputs:
4+
toolchain_flags:
5+
required: false
6+
default: ''
37
runs:
48
using: "composite"
59
steps:
@@ -45,7 +49,7 @@ runs:
4549
echo "Building against latest rustc git version"
4650
git ls-remote https://github.com/rust-lang/rust/ HEAD | cut -f 1 > rust-version
4751
fi
48-
./miri toolchain
52+
./miri toolchain ${{ inputs.toolchain_flags }}
4953
shell: bash
5054

5155
- name: Show Rust version (miri toolchain)

0 commit comments

Comments
 (0)