Skip to content

Commit 09530b0

Browse files
committed
Merge #21126: ci: Properly bump to focal for win cross build
fa272df ci: Properly bump to focal for win cross build (MarcoFalke) Pull request description: Fixes #21122 ACKs for top commit: fanquake: ACK fa272df - Looks good to me. I can see the wine version output, `wine-5.0 (Ubuntu 5.0-3ubuntu1)`, in the [log](https://cirrus-ci.com/task/5743559502462976), and `make check` is running. Tree-SHA512: cd37462afc5512e00cef5e9e7fd1bb5c43c600e833b30cdea2c1c443dc7b0e68f5f2cbaf9d7b655892059af0a226478211db1dc97c10fe4dcdfe666a784f3afc
2 parents d202054 + fa272df commit 09530b0

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.cirrus.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ task:
8282
FILE_ENV: "./ci/test/00_setup_env_arm.sh"
8383

8484
task:
85-
name: 'Win64 [unit tests, no gui tests, no boost::process, no functional tests] [bionic]'
85+
name: 'Win64 [unit tests, no gui tests, no boost::process, no functional tests] [focal]'
8686
<< : *GLOBAL_TASK_TEMPLATE
8787
container:
88-
image: ubuntu:bionic
88+
image: ubuntu:focal
8989
env:
9090
FILE_ENV: "./ci/test/00_setup_env_win64.sh"
9191

ci/test/00_setup_env_win64.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ export LC_ALL=C.UTF-8
99
export CONTAINER_NAME=ci_win64
1010
export DOCKER_NAME_TAG=ubuntu:20.04 # Check that Focal can cross-compile to win64 (Focal is used in the gitian build as well)
1111
export HOST=x86_64-w64-mingw32
12-
export PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine-binfmt wine64 file"
12+
export DPKG_ADD_ARCH="i386"
13+
export PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine-binfmt wine64 wine32 file"
1314
export RUN_FUNCTIONAL_TESTS=false
1415
export GOAL="deploy"
1516
export BITCOIN_CONFIG="--enable-reduce-exports --disable-fuzz-binary --disable-gui-tests --without-boost-process"

ci/test/wrap-wine.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@
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
1315
echo "Wrap $b ..."
1416
mv "$b" "${b}_orig"
1517
echo '#!/usr/bin/env bash' > "$b"
16-
echo "wine64 \"${b}_orig\" \"\$@\"" >> "$b"
18+
echo "wine \"${b}_orig\" \"\$@\"" >> "$b"
1719
chmod +x "$b"
1820
fi
1921
done

0 commit comments

Comments
 (0)