Skip to content

Commit

Permalink
Auto merge of rust-lang#119229 - mati865:update-mingw-toolchain, r=<try>
Browse files Browse the repository at this point in the history
Update mingw-w64 + GNU toolchain

Let's see if it works.
  • Loading branch information
bors committed Dec 22, 2023
2 parents d6d7a93 + a9d4088 commit 498e29e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -579,10 +579,13 @@ jobs:
strategy:
matrix:
include:
- name: dist-x86_64-linux
- name: i686-mingw
env:
CODEGEN_BACKENDS: "llvm,cranelift"
os: ubuntu-20.04-16core-64gb
RUST_CONFIGURE_ARGS: "--build=i686-pc-windows-gnu"
SCRIPT: make ci-mingw
NO_DOWNLOAD_CI_LLVM: 1
CUSTOM_MINGW: 1
os: windows-2019-8core-32gb
timeout-minutes: 600
runs-on: "${{ matrix.os }}"
steps:
Expand Down
13 changes: 8 additions & 5 deletions src/ci/github-actions/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -732,12 +732,15 @@ jobs:
strategy:
matrix:
include:
- &dist-x86_64-linux
name: dist-x86_64-linux
- name: i686-mingw
env:
CODEGEN_BACKENDS: llvm,cranelift
<<: *job-linux-16c

RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu
SCRIPT: make ci-mingw
# We are intentionally allowing an old toolchain on this builder (and that's
# incompatible with LLVM downloads today).
NO_DOWNLOAD_CI_LLVM: 1
CUSTOM_MINGW: 1
<<: *job-windows-8c

master:
name: master
Expand Down
16 changes: 8 additions & 8 deletions src/ci/scripts/install-mingw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ IFS=$'\n\t'

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

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

if isWindows; then
case "${CI_JOB_NAME}" in
Expand Down Expand Up @@ -41,13 +41,13 @@ if isWindows; then
if [[ "${CUSTOM_MINGW-0}" -ne 1 ]]; then
pacman -S --noconfirm --needed mingw-w64-$arch-toolchain mingw-w64-$arch-cmake \
mingw-w64-$arch-gcc \
mingw-w64-$arch-python # the python package is actually for python3
mingw-w64-$arch-python \ # the python package is actually for python3
tar zstd
ciCommandAddPath "$(ciCheckoutPath)/msys2/mingw${bits}/bin"
else
mingw_dir="mingw${bits}"

curl -o mingw.7z "${MIRRORS_BASE}/${mingw_archive}"
7z x -y mingw.7z > /dev/null
ciCommandAddPath "$(pwd)/${mingw_dir}/bin"
curl -o mingw.tar.zst "https://github.com/mati865/mingw-build/releases/download/v0/${mingw_archive}"
tar -xf mingw.tar.zst > /dev/null
ciCommandAddPath "$(pwd)/${arch}-w64-mingw32/bin"
ciCommandAddPath "$(pwd)/${arch}-w64-mingw32/${arch}-w64-mingw32/bin"
fi
fi

0 comments on commit 498e29e

Please sign in to comment.