Skip to content

Commit 29592e6

Browse files
barton2526div72
andcommitted
ci: modify wrap_wine to use wine64 for 64bit binaries, change windows CI to Focal
Co-Authored-By: div72 <[email protected]>
1 parent a6bde68 commit 29592e6

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

ci/test/00_setup_env_win32.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
export LC_ALL=C.UTF-8
88

99
export CONTAINER_NAME=ci_win32
10-
export DOCKER_NAME_TAG=ubuntu:18.04 # Check that bionic can cross-compile to win32
10+
export DOCKER_NAME_TAG=ubuntu:20.04 # Check that focal can cross-compile to win32
1111
export HOST=i686-w64-mingw32
1212
export PACKAGES="python3 nsis g++-mingw-w64-i686 wine-binfmt wine32"
1313
export RUN_UNIT_TESTS=true

ci/test/00_setup_env_win64.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
export LC_ALL=C.UTF-8
88

99
export CONTAINER_NAME=ci_win64
10-
export DOCKER_NAME_TAG=ubuntu:18.04 # Check that bionic can cross-compile to win64
10+
export DOCKER_NAME_TAG=ubuntu:20.04 # Check that focal can cross-compile to win64
1111
export HOST=x86_64-w64-mingw32
1212
export PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine-binfmt wine64"
1313
export GOAL=""

ci/test/wrap-wine.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,20 @@
66

77
export LC_ALL=C.UTF-8
88

9+
wine --version
10+
911
for b_name in {"${BASE_OUTDIR}/bin"/*,src/secp256k1/*tests,src/univalue/{no_nul,test_json,unitester,object}}.exe; do
1012
# shellcheck disable=SC2044
1113
for b in $(find "${BASE_ROOT_DIR}" -executable -type f -name "$(basename $b_name)"); do
1214
if (file "$b" | grep "Windows"); then
15+
SUFFIX=
16+
if (file "$b" | grep "x86-64"); then
17+
SUFFIX=64
18+
fi
1319
echo "Wrap $b ..."
1420
mv "$b" "${b}_orig"
1521
echo '#!/usr/bin/env bash' > "$b"
16-
echo "wine \"${b}_orig\" \"\$@\"" >> "$b"
22+
echo "wine${SUFFIX} \"${b}_orig\" \"\$@\"" >> "$b"
1723
chmod +x "$b"
1824
fi
1925
done

0 commit comments

Comments
 (0)