Skip to content

Commit d400ea1

Browse files
committed
Auto merge of rust-lang#119229 - mati865:update-mingw-toolchain, r=<try>
Update mingw-w64 + GNU toolchain Let's see if it works.
2 parents c03d978 + 3660130 commit d400ea1

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed

Diff for: .github/workflows/ci.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -579,10 +579,13 @@ jobs:
579579
strategy:
580580
matrix:
581581
include:
582-
- name: dist-x86_64-linux
582+
- name: i686-mingw
583583
env:
584-
CODEGEN_BACKENDS: "llvm,cranelift"
585-
os: ubuntu-20.04-16core-64gb
584+
RUST_CONFIGURE_ARGS: "--build=i686-pc-windows-gnu"
585+
SCRIPT: make ci-mingw
586+
NO_DOWNLOAD_CI_LLVM: 1
587+
CUSTOM_MINGW: 1
588+
os: windows-2019-8core-32gb
586589
timeout-minutes: 600
587590
runs-on: "${{ matrix.os }}"
588591
steps:

Diff for: src/ci/github-actions/ci.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -732,12 +732,15 @@ jobs:
732732
strategy:
733733
matrix:
734734
include:
735-
- &dist-x86_64-linux
736-
name: dist-x86_64-linux
735+
- name: i686-mingw
737736
env:
738-
CODEGEN_BACKENDS: llvm,cranelift
739-
<<: *job-linux-16c
740-
737+
RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu
738+
SCRIPT: make ci-mingw
739+
# We are intentionally allowing an old toolchain on this builder (and that's
740+
# incompatible with LLVM downloads today).
741+
NO_DOWNLOAD_CI_LLVM: 1
742+
CUSTOM_MINGW: 1
743+
<<: *job-windows-8c
741744

742745
master:
743746
name: master

Diff for: src/ci/scripts/install-mingw.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ IFS=$'\n\t'
99

1010
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
1111

12-
MINGW_ARCHIVE_32="i686-12.2.0-release-posix-dwarf-rt_v10-rev0.7z"
13-
MINGW_ARCHIVE_64="x86_64-12.2.0-release-posix-seh-rt_v10-rev0.7z"
12+
MINGW_ARCHIVE_32="i686-w64-mingw32.tar.zst"
13+
MINGW_ARCHIVE_64="x86_64-w64-mingw32.tar.zst"
1414

1515
if isWindows; then
1616
case "${CI_JOB_NAME}" in
@@ -44,10 +44,10 @@ if isWindows; then
4444
mingw-w64-$arch-python # the python package is actually for python3
4545
ciCommandAddPath "$(ciCheckoutPath)/msys2/mingw${bits}/bin"
4646
else
47-
mingw_dir="mingw${bits}"
48-
49-
curl -o mingw.7z "${MIRRORS_BASE}/${mingw_archive}"
50-
7z x -y mingw.7z > /dev/null
51-
ciCommandAddPath "$(pwd)/${mingw_dir}/bin"
47+
url="https://github.com/mati865/mingw-build/releases/download/v0"
48+
curl -L -o mingw.tar.zst "${url}/${mingw_archive}"
49+
tar -xf mingw.tar.zst
50+
ciCommandAddPath "$(pwd)/${arch}-w64-mingw32/bin"
51+
ciCommandAddPath "$(pwd)/${arch}-w64-mingw32/${arch}-w64-mingw32/bin"
5252
fi
5353
fi

0 commit comments

Comments
 (0)