Skip to content

Commit 53c2c04

Browse files
committed
ci: remove the MINGW_DIR and MINGW_ARCHIVE env vars
1 parent 71e5018 commit 53c2c04

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

src/ci/azure-pipelines/auto.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,6 @@ jobs:
285285
RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu
286286
SCRIPT: make ci-mingw-subset-1
287287
CUSTOM_MINGW: 1
288-
MINGW_ARCHIVE: i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z
289-
MINGW_DIR: mingw32
290288
# FIXME(#59637)
291289
NO_DEBUG_ASSERTIONS: 1
292290
NO_LLVM_ASSERTIONS: 1
@@ -295,15 +293,11 @@ jobs:
295293
RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu
296294
SCRIPT: make ci-mingw-subset-2
297295
CUSTOM_MINGW: 1
298-
MINGW_ARCHIVE: i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z
299-
MINGW_DIR: mingw32
300296
x86_64-mingw-1:
301297
MSYS_BITS: 64
302298
SCRIPT: make ci-mingw-subset-1
303299
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu
304300
CUSTOM_MINGW: 1
305-
MINGW_ARCHIVE: x86_64-6.3.0-release-posix-seh-rt_v5-rev2.7z
306-
MINGW_DIR: mingw64
307301
# FIXME(#59637)
308302
NO_DEBUG_ASSERTIONS: 1
309303
NO_LLVM_ASSERTIONS: 1
@@ -312,8 +306,6 @@ jobs:
312306
SCRIPT: make ci-mingw-subset-2
313307
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu
314308
CUSTOM_MINGW: 1
315-
MINGW_ARCHIVE: x86_64-6.3.0-release-posix-seh-rt_v5-rev2.7z
316-
MINGW_DIR: mingw64
317309

318310
# 32/64 bit MSVC and GNU deployment
319311
dist-x86_64-msvc:
@@ -341,17 +333,13 @@ jobs:
341333
RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu --enable-full-tools --enable-profiler
342334
SCRIPT: python x.py dist
343335
CUSTOM_MINGW: 1
344-
MINGW_ARCHIVE: i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z
345-
MINGW_DIR: mingw32
346336
DIST_REQUIRE_ALL_TOOLS: 1
347337
DEPLOY: 1
348338
dist-x86_64-mingw:
349339
MSYS_BITS: 64
350340
SCRIPT: python x.py dist
351341
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu --enable-full-tools --enable-profiler
352342
CUSTOM_MINGW: 1
353-
MINGW_ARCHIVE: x86_64-6.3.0-release-posix-seh-rt_v5-rev2.7z
354-
MINGW_DIR: mingw64
355343
DIST_REQUIRE_ALL_TOOLS: 1
356344
DEPLOY: 1
357345

src/ci/scripts/install-mingw.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ IFS=$'\n\t'
2727

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

30+
MINGW_ARCHIVE_32="i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z"
31+
MINGW_ARCHIVE_64="x86_64-6.3.0-release-posix-seh-rt_v5-rev2.7z"
32+
3033
if isWindows; then
3134
if [[ "${CUSTOM_MINGW-0}" -ne 1 ]]; then
3235
arch=i686
@@ -37,9 +40,15 @@ if isWindows; then
3740
mingw-w64-$arch-gcc mingw-w64-$arch-python2
3841
ciCommandAddPath "${SYSTEM_WORKFOLDER}/msys2/mingw${MSYS_BITS}/bin"
3942
else
40-
curl -o mingw.7z "${MIRRORS_BASE}/${MINGW_ARCHIVE}"
43+
mingw_archive="${MINGW_ARCHIVE_32}"
44+
if [[ "${MSYS_BITS}" = "64" ]]; then
45+
mingw_archive="${MINGW_ARCHIVE_64}"
46+
fi
47+
mingw_dir="mingw${MSYS_BITS}"
48+
49+
curl -o mingw.7z "${MIRRORS_BASE}/${mingw_archive}"
4150
7z x -y mingw.7z > /dev/null
42-
curl -o "${MINGW_DIR}/bin/gdborig.exe" "${MIRRORS_BASE}/2017-04-20-${MSYS_BITS}bit-gdborig.exe"
43-
ciCommandAddPath "$(pwd)/${MINGW_DIR}/bin"
51+
curl -o "${mingw_dir}/bin/gdborig.exe" "${MIRRORS_BASE}/2017-04-20-${MSYS_BITS}bit-gdborig.exe"
52+
ciCommandAddPath "$(pwd)/${mingw_dir}/bin"
4453
fi
4554
fi

0 commit comments

Comments
 (0)