Skip to content

Commit

Permalink
make sure we install the toolchain for the intended host target
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Feb 24, 2025
1 parent 82ce87f commit ac0bc39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/setup
with:
toolchain_flags: "--host ${{ matrix.host_target }}"

# The `style` job only runs on Linux; this makes sure the Windows-host-specific
# code is also covered by clippy.
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/setup/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: "Miri CI setup"
description: "Sets up Miri CI"
inputs:
toolchain_flags:
required: false
default: ''
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -45,7 +49,7 @@ runs:
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
./miri toolchain ${{ inputs.toolchain_flags }}
shell: bash

- name: Show Rust version (miri toolchain)
Expand Down

0 comments on commit ac0bc39

Please sign in to comment.