1
1
mirror of https://github.com/wez/wezterm.git synced 2024-10-05 18:58:52 +03:00

Fix Windows CI.

It's currently failing when running tests with errors of the form:

> error: creating test list failed
>
> Caused by:
>   for `wezterm-config-derive`, command
>   `'D:\a\wezterm\wezterm\target\debug\deps\wezterm_config_derive-f1c7f0f2de220b6e.exe'
>   --list --format terse` exited with code 0xc0000135: The specified
>   module could not be found. (os error 126)

This seems to have been caused by nextest-rs/nextest#1493, with this comment
as a fix: https://github.com/nextest-rs/nextest/issues/1493#issuecomment-2106331574
This commit is contained in:
Bogdan-Cristian Tătăroiu 2024-05-20 11:24:26 +01:00 committed by Wez Furlong
parent 6fe1d4d2f8
commit 993eb9f3a9
4 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,7 @@ jobs:
CARGO_INCREMENTAL: "0"
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
RUSTUP_WINDOWS_PATH_ADD_BIN: "1"
steps:
- name: "checkout repo"

View File

@ -26,6 +26,7 @@ jobs:
CARGO_INCREMENTAL: "0"
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
RUSTUP_WINDOWS_PATH_ADD_BIN: "1"
steps:
- name: "checkout repo"

View File

@ -13,6 +13,7 @@ jobs:
CARGO_INCREMENTAL: "0"
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
RUSTUP_WINDOWS_PATH_ADD_BIN: "1"
steps:
- name: "checkout repo"

View File

@ -812,6 +812,8 @@ rustup default {toolchain}
self.env["MACOSX_DEPLOYMENT_TARGET"] = "10.9"
if "alpine" in self.name:
self.env["RUSTFLAGS"] = "-C target-feature=-crt-static"
if "win" in self.name:
self.env["RUSTUP_WINDOWS_PATH_ADD_BIN"] = "1"
return
def prep_environment(self, cache=True):