Skip to content

Commit 41895ca

Browse files
mati865Mark-Simulacrum
authored andcommitted
Use preinstalled MSYS2
1 parent 32166ab commit 41895ca

File tree

5 files changed

+3
-58
lines changed

5 files changed

+3
-58
lines changed

.github/workflows/ci.yml

-9
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ jobs:
101101
- name: install MSYS2
102102
run: src/ci/scripts/install-msys2.sh
103103
if: success() && !env.SKIP_JOB
104-
- name: install MSYS2 packages
105-
run: src/ci/scripts/install-msys2-packages.sh
106-
if: success() && !env.SKIP_JOB
107104
- name: install MinGW
108105
run: src/ci/scripts/install-mingw.sh
109106
if: success() && !env.SKIP_JOB
@@ -210,9 +207,6 @@ jobs:
210207
- name: install MSYS2
211208
run: src/ci/scripts/install-msys2.sh
212209
if: success() && !env.SKIP_JOB
213-
- name: install MSYS2 packages
214-
run: src/ci/scripts/install-msys2-packages.sh
215-
if: success() && !env.SKIP_JOB
216210
- name: install MinGW
217211
run: src/ci/scripts/install-mingw.sh
218212
if: success() && !env.SKIP_JOB
@@ -561,9 +555,6 @@ jobs:
561555
- name: install MSYS2
562556
run: src/ci/scripts/install-msys2.sh
563557
if: success() && !env.SKIP_JOB
564-
- name: install MSYS2 packages
565-
run: src/ci/scripts/install-msys2-packages.sh
566-
if: success() && !env.SKIP_JOB
567558
- name: install MinGW
568559
run: src/ci/scripts/install-mingw.sh
569560
if: success() && !env.SKIP_JOB

src/ci/azure-pipelines/steps/run.yml

-4
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ steps:
8282
displayName: Install msys2
8383
condition: and(succeeded(), not(variables.SKIP_JOB))
8484

85-
- bash: src/ci/scripts/install-msys2-packages.sh
86-
displayName: Install msys2 packages
87-
condition: and(succeeded(), not(variables.SKIP_JOB))
88-
8985
- bash: src/ci/scripts/install-mingw.sh
9086
displayName: Install MinGW
9187
condition: and(succeeded(), not(variables.SKIP_JOB))

src/ci/github-actions/ci.yml

-4
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,6 @@ x--expand-yaml-anchors--remove:
146146
run: src/ci/scripts/install-msys2.sh
147147
<<: *step
148148

149-
- name: install MSYS2 packages
150-
run: src/ci/scripts/install-msys2-packages.sh
151-
<<: *step
152-
153149
- name: install MinGW
154150
run: src/ci/scripts/install-mingw.sh
155151
<<: *step

src/ci/scripts/install-msys2-packages.sh

-27
This file was deleted.

src/ci/scripts/install-msys2.sh

+3-14
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,16 @@
11
#!/bin/bash
22
# Download and install MSYS2, needed primarily for the test suite (run-make) but
33
# also used by the MinGW toolchain for assembling things.
4-
#
5-
# FIXME: we should probe the default azure image and see if we can use the MSYS2
6-
# toolchain there. (if there's even one there). For now though this gets the job
7-
# done.
84

95
set -euo pipefail
106
IFS=$'\n\t'
117

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

1410
if isWindows; then
15-
# Pre-followed the api/v2 URL to the CDN since the API can be a bit flakey
16-
curl -sSL https://packages.chocolatey.org/msys2.20190524.0.0.20191030.nupkg > \
17-
msys2.nupkg
18-
curl -sSL https://packages.chocolatey.org/chocolatey-core.extension.1.3.5.1.nupkg > \
19-
chocolatey-core.extension.nupkg
20-
choco install -s . msys2 \
21-
--params="/InstallDir:$(ciCheckoutPath)/msys2 /NoPath" -y --no-progress
22-
rm msys2.nupkg chocolatey-core.extension.nupkg
23-
mkdir -p "$(ciCheckoutPath)/msys2/home/${USERNAME}"
24-
ciCommandAddPath "$(ciCheckoutPath)/msys2/usr/bin"
11+
msys2Path="c:/msys64"
12+
mkdir -p "${msys2Path}/home/${USERNAME}"
13+
ciCommandAddPath "${msys2Path}/usr/bin"
2514

2615
# Detect the native Python version installed on the agent. On GitHub
2716
# Actions, the C:\hostedtoolcache\windows\Python directory contains a

0 commit comments

Comments
 (0)