Skip to content

Commit f63931b

Browse files
committed
Cleanup custom mingw in CI
1 parent bdbbb6c commit f63931b

File tree

4 files changed

+4
-47
lines changed

4 files changed

+4
-47
lines changed

.github/workflows/ci.yml

-3
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,6 @@ jobs:
155155
- name: checkout submodules
156156
run: src/ci/scripts/checkout-submodules.sh
157157

158-
- name: install MSYS2
159-
run: src/ci/scripts/install-msys2.sh
160-
161158
- name: install MinGW
162159
run: src/ci/scripts/install-mingw.sh
163160

src/ci/github-actions/jobs.yml

-4
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,6 @@ auto:
378378
# We are intentionally allowing an old toolchain on this builder (and that's
379379
# incompatible with LLVM downloads today).
380380
NO_DOWNLOAD_CI_LLVM: 1
381-
CUSTOM_MINGW: 1
382381
<<: *job-windows-8c
383382

384383
- image: x86_64-mingw
@@ -390,7 +389,6 @@ auto:
390389
# We are intentionally allowing an old toolchain on this builder (and that's
391390
# incompatible with LLVM downloads today).
392391
NO_DOWNLOAD_CI_LLVM: 1
393-
CUSTOM_MINGW: 1
394392
<<: *job-windows-8c
395393

396394
- image: dist-x86_64-msvc
@@ -439,7 +437,6 @@ auto:
439437
# incompatible with LLVM downloads today).
440438
NO_DOWNLOAD_CI_LLVM: 1
441439
SCRIPT: python x.py dist bootstrap --include-default-paths
442-
CUSTOM_MINGW: 1
443440
DIST_REQUIRE_ALL_TOOLS: 1
444441
<<: *job-windows-8c
445442

@@ -453,7 +450,6 @@ auto:
453450
# We are intentionally allowing an old toolchain on this builder (and that's
454451
# incompatible with LLVM downloads today).
455452
NO_DOWNLOAD_CI_LLVM: 1
456-
CUSTOM_MINGW: 1
457453
DIST_REQUIRE_ALL_TOOLS: 1
458454
<<: *job-windows-8c
459455

src/ci/scripts/install-mingw.sh

+4-13
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/bash
22
# If we need to download a custom MinGW, do so here and set the path
33
# appropriately.
4-
#
5-
# Otherwise install MinGW through `pacman`
64

75
set -euo pipefail
86
IFS=$'\n\t'
@@ -16,19 +14,16 @@ if isWindows && isKnownToBeMingwBuild; then
1614
case "${CI_JOB_NAME}" in
1715
*i686*)
1816
bits=32
19-
arch=i686
2017
mingw_archive="${MINGW_ARCHIVE_32}"
2118
;;
2219
*x86_64*)
2320
bits=64
24-
arch=x86_64
2521
mingw_archive="${MINGW_ARCHIVE_64}"
2622
;;
2723
*aarch64*)
2824
# aarch64 is a cross-compiled target. Use the x86_64
2925
# mingw, since that's the host architecture.
3026
bits=64
31-
arch=x86_64
3227
mingw_archive="${MINGW_ARCHIVE_64}"
3328
;;
3429
*)
@@ -38,13 +33,9 @@ if isWindows && isKnownToBeMingwBuild; then
3833
;;
3934
esac
4035

41-
if [[ "${CUSTOM_MINGW:-0}" == 0 ]]; then
42-
pacman -S --noconfirm --needed mingw-w64-$arch-toolchain
43-
else
44-
mingw_dir="mingw${bits}"
36+
mingw_dir="mingw${bits}"
4537

46-
curl -o mingw.7z "${MIRRORS_BASE}/${mingw_archive}"
47-
7z x -y mingw.7z > /dev/null
48-
ciCommandAddPath "$(pwd)/${mingw_dir}/bin"
49-
fi
38+
curl -o mingw.7z "${MIRRORS_BASE}/${mingw_archive}"
39+
7z x -y mingw.7z > /dev/null
40+
ciCommandAddPath "$(pwd)/${mingw_dir}/bin"
5041
fi

src/ci/scripts/install-msys2.sh

-27
This file was deleted.

0 commit comments

Comments
 (0)