diff options
-rw-r--r-- | ci/run.ps1 | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -7,8 +7,17 @@ if ($LastExitCode -ne 0) { # remove PostgreSQL from path so we don't pickup a broken zlib from it $env:Path = ($env:Path.Split(';') | Where-Object { $_ -notmatch 'mingw|Strawberry|Chocolatey|PostgreSQL' }) -join ';' -# Rust puts its shared stdlib in a secret place, but it is needed to run tests. -$env:Path += ";$HOME/.rustup/toolchains/stable-x86_64-pc-windows-msvc/bin" +if ($env:arch -eq 'x64') { + # Rust puts its shared stdlib in a secret place, but it is needed to run tests. + $env:Path += ";$HOME/.rustup/toolchains/stable-x86_64-pc-windows-msvc/bin" +} elseif ($env:arch -eq 'x86') { + # Switch to the x86 Rust toolchain + rustup default stable-i686-pc-windows-msvc + # Rust puts its shared stdlib in a secret place, but it is needed to run tests. + $env:Path += ";$HOME/.rustup/toolchains/stable-i686-pc-windows-msvc/bin" + # Need 32-bit Python for tests that need the Python dependency + $env:Path = "C:\hostedtoolcache\windows\Python\3.6.8\x86;C:\hostedtoolcache\windows\Python\3.6.8\x86\Scripts;$env:Path" +} # Set the CI env var for the meson test framework $env:CI = '1' |