Skip to content

Commit 0402ff2

Browse files
authored
Unrolled build for rust-lang#136815
Rollup merge of rust-lang#136815 - ChrisDenton:fix-mingw-ci, r=Kobzol CI: Stop /msys64/bin from being prepended to PATH in msys2 shell We used to do this along time ago but we stopped doing it when we started installing msys2 manually. https://github.com/rust-lang/rust/blob/4fd3cf96a1db7771ef4f332b9eb1ad17fa0fd091/src/ci/scripts/install-msys2.sh#L11-L13 Fixes rust-lang#136795 try-job: dist-i686-mingw
2 parents f280acf + ec8ec41 commit 0402ff2

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/ci.yml

+5
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ jobs:
173173
- name: ensure the stable version number is correct
174174
run: src/ci/scripts/verify-stable-version-number.sh
175175

176+
# Show the environment just before we run the build
177+
# This makes it easier to diagnose problems with the above install scripts.
178+
- name: show the current environment
179+
run: src/ci/scripts/dump-environment.sh
180+
176181
- name: run the build
177182
# Redirect stderr to stdout to avoid reordering the two streams in the GHA logs.
178183
run: src/ci/scripts/run-build-from-ci.sh 2>&1

src/ci/scripts/install-mingw.sh

+6
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ if isWindows && isKnownToBeMingwBuild; then
3232
;;
3333
esac
3434

35+
# Stop /msys64/bin from being prepended to PATH by adding the bin directory manually.
36+
# Note that this intentionally uses a Windows style path instead of the msys2 path to
37+
# avoid being auto-translated into `/usr/bin`, which will not have the desired effect.
38+
msys2Path="c:/msys64"
39+
ciCommandAddPath "${msys2Path}/usr/bin"
40+
3541
mingw_dir="mingw${bits}"
3642

3743
curl -o mingw.7z "${MIRRORS_BASE}/${mingw_archive}"

0 commit comments

Comments
 (0)