Support force-non-host toolchains

This commit is contained in:
fufesou
2026-09-12 08:34:53 +08:00
parent d103106726
commit 06b350f08c
3 changed files with 27 additions and 2 deletions
+16
View File
@@ -43,3 +43,19 @@ jobs:
if: matrix.rust == 'nightly' || matrix.rust == 'beta' || matrix.rust == 'stable'
- run: cargo check
if: matrix.rust == 'nightly' || matrix.rust == 'beta' || matrix.rust == 'stable'
non-host:
name: Non-host toolchain on Windows
runs-on: windows-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v7
- uses: ./
with:
toolchain: stable-i686-pc-windows-msvc
force-non-host: true
- name: Check the active toolchain and compiler host
run: |
test "$(rustup show active-toolchain)" = "stable-i686-pc-windows-msvc (default)"
rustc --version --verbose | grep -Fx 'host: i686-pc-windows-msvc'
shell: bash