From 662192a878040ca13b7851baacc567f73feb57df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Miku=C5=82a?= Date: Mon, 1 Dec 2025 13:59:52 +0100 Subject: [PATCH] Stop adding MSYS2 to PATH Rust no longer requires MSYS2 tools like make. --- src/ci/scripts/install-mingw.sh | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/ci/scripts/install-mingw.sh b/src/ci/scripts/install-mingw.sh index 17bedaa7b8266..da8e1d55f3ae3 100755 --- a/src/ci/scripts/install-mingw.sh +++ b/src/ci/scripts/install-mingw.sh @@ -47,12 +47,6 @@ if isWindows && isKnownToBeMingwBuild; then ;; esac - # Stop /msys64/bin from being prepended to PATH by adding the bin directory manually. - # Note that this intentionally uses a Windows style path instead of the msys2 path to - # avoid being auto-translated into `/usr/bin`, which will not have the desired effect. - msys2Path="c:/msys64" - ciCommandAddPath "${msys2Path}/usr/bin" - case "${mingw_archive}" in *.7z) curl -o mingw.7z "${MIRRORS_BASE}/${mingw_archive}" @@ -73,12 +67,4 @@ if isWindows && isKnownToBeMingwBuild; then esac ciCommandAddPath "$(cygpath -m "$(pwd)/${mingw_dir}/bin")" - - # MSYS2 is not installed on AArch64 runners - if [[ "${CI_JOB_NAME}" != *aarch64-llvm* ]]; then - # Initialize mingw for the user. - # This should be done by github but isn't for some reason. - # (see https://github.com/actions/runner-images/issues/12600) - /c/msys64/usr/bin/bash -lc ' ' - fi fi