-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: use bash for Windows and build more targets in CI #8865
Conversation
Signed-off-by: Lizan Zhou <[email protected]>
Signed-off-by: Lizan Zhou <[email protected]>
cc @wrowe PTAL |
@wrowe this addresses the issue you see in #8754 (comment), powershell by default treating command write to stderr as a failure so I just switch to bash (which is Windows native, not WSL, already available in azp) for a couple more reasons (leveraging existing scripts such as setting up caches). |
Good stuff, thanks @lizan. This is a noop relative to the original correction to bazel/boringssl_static.patch in PR 8754 which is still needed. The proposal looks good - we only launch from powershell so can't comment on launching bazel from bash, but this is supposed to work well. Editorial nit; missed a trailing newline in ci/windows_ci_steps.sh |
I'm rather confused, I searched azp and found only reference to the ubuntu (wsl) flavor of bash. Pointer please? This may be fine in any case, I'm not sure it has been evaluated by the bazel authors but I'm fine with beginning experimental use of it in place of msys2. But bash isn't the only linux tool required of msys2 for building bazel, nevermind envoy. |
Last observation, the -fPIC change is good, but missed this change that's still needed to undo the recent breakage with pic/pie;
|
Re: pie/pic on Windows; confirms that ASLR-compatible .exe objects are the default for Windows (this was obviously true of .dll files, but also true of static .exe's by default since at least as far back as Visual Studio 2015.) |
From azp log:
Seems azp agent is using bash under git installation, and from what bazelisk downloads it is obviously using native Windows bazel. (We don't install Linux binary of bazelisk anywhere either). I'll update pie soon |
Signed-off-by: Lizan Zhou <[email protected]>
Signed-off-by: Lizan Zhou <[email protected]>
Signed-off-by: Lizan Zhou [email protected]
Description:
Risk Level: Low
Testing:
Docs Changes:
Release Notes: