Skip to content

Commit d78bec7

Browse files
ci: Remove Windows MSVC tasks from Cirrus CI
Co-authored-by: Tim Ruffing <crypto@timruffing.de>
1 parent 3545dc2 commit d78bec7

File tree

3 files changed

+2
-71
lines changed

3 files changed

+2
-71
lines changed

.cirrus.yml

-43
Original file line numberDiff line numberDiff line change
@@ -239,48 +239,6 @@ task:
239239
- ./ci/cirrus.sh
240240
<< : *CAT_LOGS
241241

242-
task:
243-
<< : *LINUX_CONTAINER
244-
env:
245-
WRAPPER_CMD: wine
246-
WERROR_CFLAGS: -WX
247-
WITH_VALGRIND: no
248-
ECDH: yes
249-
RECOVERY: yes
250-
EXPERIMENTAL: yes
251-
SCHNORRSIG: yes
252-
ELLSWIFT: yes
253-
CTIMETESTS: no
254-
# Use a MinGW-w64 host to tell ./configure we're building for Windows.
255-
# This will detect some MinGW-w64 tools but then make will need only
256-
# the MSVC tools CC, AR and NM as specified below.
257-
HOST: x86_64-w64-mingw32
258-
CC: /opt/msvc/bin/x64/cl
259-
AR: /opt/msvc/bin/x64/lib
260-
NM: /opt/msvc/bin/x64/dumpbin -symbols -headers
261-
# Set non-essential options that affect the CLI messages here.
262-
# (They depend on the user's taste, so we don't want to set them automatically in configure.ac.)
263-
CFLAGS: -nologo -diagnostics:caret
264-
LDFLAGS: -Xlinker -Xlinker -Xlinker -nologo
265-
matrix:
266-
- name: "x86_64 (MSVC): Windows (Debian stable, Wine)"
267-
- name: "x86_64 (MSVC): Windows (Debian stable, Wine, int128_struct)"
268-
env:
269-
WIDEMUL: int128_struct
270-
- name: "x86_64 (MSVC): Windows (Debian stable, Wine, int128_struct with __(u)mulh)"
271-
env:
272-
WIDEMUL: int128_struct
273-
CPPFLAGS: -DSECP256K1_MSVC_MULH_TEST_OVERRIDE
274-
- name: "i686 (MSVC): Windows (Debian stable, Wine)"
275-
env:
276-
HOST: i686-w64-mingw32
277-
CC: /opt/msvc/bin/x86/cl
278-
AR: /opt/msvc/bin/x86/lib
279-
NM: /opt/msvc/bin/x86/dumpbin -symbols -headers
280-
test_script:
281-
- ./ci/cirrus.sh
282-
<< : *CAT_LOGS
283-
284242
# Sanitizers
285243
task:
286244
<< : *LINUX_CONTAINER
@@ -374,4 +332,3 @@ task:
374332
test_script:
375333
- g++ -Werror include/*.h
376334
- clang -Werror -x c++-header include/*.h
377-
- /opt/msvc/bin/x64/cl.exe -c -WX -TP include/*.h

ci/cirrus.sh

-10
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,6 @@ print_environment() {
3131
}
3232
print_environment
3333

34-
# Start persistent wineserver if necessary.
35-
# This speeds up jobs with many invocations of wine (e.g., ./configure with MSVC) tremendously.
36-
case "$WRAPPER_CMD" in
37-
*wine*)
38-
# Make sure to shutdown wineserver whenever we exit.
39-
trap "wineserver -k || true" EXIT INT HUP
40-
wineserver -p
41-
;;
42-
esac
43-
4434
env >> test_env.log
4535

4636
# If gcc is requested, assert that it's in fact gcc (and not some symlinked Apple clang).

ci/linux-debian.Dockerfile

+2-18
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
2121
gcc-aarch64-linux-gnu libc6-dev-arm64-cross libc6-dbg:arm64 \
2222
gcc-powerpc64le-linux-gnu libc6-dev-ppc64el-cross libc6-dbg:ppc64el \
2323
gcc-mingw-w64-x86-64-win32 wine64 wine \
24-
gcc-mingw-w64-i686-win32 wine32
24+
gcc-mingw-w64-i686-win32 wine32 \
25+
python3
2526

2627
WORKDIR /root
2728

@@ -55,20 +56,3 @@ RUN wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | tee /etc/apt/trusted.
5556
# Create symlinks for them
5657
ln -s $(ls /usr/bin/clang-?? | sort | tail -1) /usr/bin/clang-snapshot && \
5758
ln -s $(ls /usr/bin/clang-?? | sort | head -1) /usr/bin/clang
58-
59-
# The "wine" package provides a convenience wrapper that we need
60-
RUN apt-get update && apt-get install --no-install-recommends -y \
61-
git ca-certificates wine64 wine python3-simplejson python3-six msitools winbind procps && \
62-
# Workaround for `wine` package failure to employ the Debian alternatives system properly.
63-
ln -s /usr/lib/wine/wine64 /usr/bin/wine64 && \
64-
# Set of tools for using MSVC on Linux.
65-
git clone https://github.com/mstorsjo/msvc-wine && \
66-
mkdir /opt/msvc && \
67-
python3 msvc-wine/vsdownload.py --accept-license --dest /opt/msvc Microsoft.VisualStudio.Workload.VCTools && \
68-
# Since commit 2146cbfaf037e21de56c7157ec40bb6372860f51, the
69-
# msvc-wine effectively initializes the wine prefix when running
70-
# the install.sh script.
71-
msvc-wine/install.sh /opt/msvc && \
72-
# Wait until the wineserver process has exited before closing the session,
73-
# to avoid corrupting the wine prefix.
74-
while (ps -A | grep wineserver) > /dev/null; do sleep 1; done

0 commit comments

Comments
 (0)