Skip to content

Commit c065a17

Browse files
committed
Merge #407: ci: Fix broken jobs
d04cfc9 ci: Set `IN_GETOPT_BIN` environment variable for native macOS job (Hennadii Stepanov) 568dbbe ci: Disable fuzz tests for "macOS 13 native" job (Hennadii Stepanov) 6a4f027 ci: Disable benchmarks for "Win64 native" job (Hennadii Stepanov) 91a2b37 build: disable external-signer for Windows (fanquake) 5cbb35b build, msvc: Update vcpkg baseline (Hennadii Stepanov) c0e608a ci: Delete no longer needed workaround in native Windows job (Hennadii Stepanov) Pull request description: See commit messages for details. ACKs for top commit: pablomartin4btc: ACK d04cfc9 Tree-SHA512: eaab8bbdb5638df192dafd7b06fd01a04d2f3cbb795edf8d1f1961836d80df8f8d75cef82f07af2f79447db26b62d45dab1eeaa1acad9306c575b75be59cb0eb
2 parents 364e41d + d04cfc9 commit c065a17

File tree

6 files changed

+20
-47
lines changed

6 files changed

+20
-47
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,10 @@ jobs:
6262
- name: Install Homebrew packages
6363
run: brew install boost libevent qt@5 miniupnpc libnatpmp ccache zeromq qrencode libtool automake gnu-getopt
6464

65-
- name: Set Ccache directory
66-
run: echo "CCACHE_DIR=${RUNNER_TEMP}/ccache_dir" >> "$GITHUB_ENV"
65+
- name: Set environment variables
66+
run: |
67+
echo "CCACHE_DIR=${RUNNER_TEMP}/ccache_dir" >> "$GITHUB_ENV"
68+
echo "IN_GETOPT_BIN=$(brew --prefix gnu-getopt)/bin/getopt" >> "$GITHUB_ENV"
6769
6870
- name: Restore Ccache cache
6971
uses: actions/cache/restore@v4
@@ -105,37 +107,6 @@ jobs:
105107
- name: Checkout
106108
uses: actions/checkout@v3
107109

108-
- name: Fix Visual Studio installation
109-
# See: https://github.com/actions/runner-images/issues/7832#issuecomment-1617585694.
110-
run: |
111-
Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer\"
112-
$InstallPath = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
113-
$componentsToRemove= @(
114-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.ARM"
115-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.ARM.Spectre"
116-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.ARM64"
117-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.ARM64.Spectre"
118-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.x86.x64"
119-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.x86.x64.Spectre"
120-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.ATL"
121-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.ATL.Spectre"
122-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.ATL.ARM"
123-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.ATL.ARM.Spectre"
124-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.ATL.ARM64"
125-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.ATL.ARM64.Spectre"
126-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.MFC"
127-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.MFC.Spectre"
128-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.MFC.ARM"
129-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.MFC.ARM.Spectre"
130-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.MFC.ARM64"
131-
"Microsoft.VisualStudio.Component.VC.14.35.17.5.MFC.ARM64.Spectre"
132-
)
133-
[string]$workloadArgs = $componentsToRemove | ForEach-Object {" --remove " + $_}
134-
$Arguments = ('/c', "vs_installer.exe", 'modify', '--installPath', "`"$InstallPath`"",$workloadArgs, '--quiet', '--norestart', '--nocache')
135-
# should be run twice
136-
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
137-
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
138-
139110
- name: Configure Developer Command Prompt for Microsoft Visual C++
140111
# Using microsoft/setup-msbuild is not enough.
141112
uses: ilammy/msvc-dev-cmd@v1
@@ -266,9 +237,6 @@ jobs:
266237
- name: Run unit tests
267238
run: src\test_bitcoin.exe -l test_suite
268239

269-
- name: Run benchmarks
270-
run: src\bench_bitcoin.exe -sanity-check
271-
272240
- name: Run util tests
273241
run: py -3 test\util\test_runner.py
274242

build_msvc/bitcoin_config.h.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@
4141
/* Define this symbol to enable ZMQ functions */
4242
#define ENABLE_ZMQ 1
4343

44-
/* define if external signer support is enabled (requires Boost::Process) */
45-
#define ENABLE_EXTERNAL_SIGNER /**/
46-
4744
/* Define to 1 if you have the declaration of `be16toh', and to 0 if you
4845
don't. */
4946
#define HAVE_DECL_BE16TOH 0

build_msvc/bitcoind/bitcoind.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<ReplaceInFile FilePath="$(ConfigIniOut)"
8383
Replace="@ENABLE_ZMQ_TRUE@" By=""></ReplaceInFile>
8484
<ReplaceInFile FilePath="$(ConfigIniOut)"
85-
Replace="@ENABLE_EXTERNAL_SIGNER_TRUE@" By=""></ReplaceInFile>
85+
Replace="@ENABLE_EXTERNAL_SIGNER_TRUE@" By="#"></ReplaceInFile>
8686
</Target>
8787
<Import Project="..\common.vcxproj" />
8888
</Project>

build_msvc/vcpkg.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"version-string": "1",
44
"dependencies": [
55
"berkeleydb",
6+
"boost-date-time",
67
"boost-multi-index",
7-
"boost-process",
88
"boost-signals2",
99
"boost-test",
1010
"sqlite3",
@@ -14,7 +14,7 @@
1414
},
1515
"zeromq"
1616
],
17-
"builtin-baseline": "f14984af3738e69f197bf0e647a8dca12de92996",
17+
"builtin-baseline": "9edb1b8e590cc086563301d735cae4b6e732d2d2",
1818
"overrides": [
1919
{
2020
"name": "libevent",

ci/test/00_setup_env_mac_native.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,3 @@ export CI_OS_NAME="macos"
1414
export NO_DEPENDS=1
1515
export OSX_SDK=""
1616
export CCACHE_MAXSIZE=400M
17-
export RUN_FUZZ_TESTS=true
18-
export FUZZ_TESTS_CONFIG="--exclude banman" # https://github.com/bitcoin/bitcoin/issues/27924

configure.ac

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,9 +1520,19 @@ if test "$use_external_signer" != "no"; then
15201520
CXXFLAGS="$TEMP_CXXFLAGS"
15211521
AC_MSG_RESULT([$have_boost_process])
15221522
if test "$have_boost_process" = "yes"; then
1523-
use_external_signer="yes"
1524-
AC_DEFINE([ENABLE_EXTERNAL_SIGNER], [1], [Define if external signer support is enabled])
1525-
AC_DEFINE([BOOST_PROCESS_USE_STD_FS], [1], [Defined to avoid Boost::Process trying to use Boost Filesystem])
1523+
case $host in
1524+
dnl Boost Process for Windows uses Boost ASIO. Boost ASIO performs
1525+
dnl pre-main init of Windows networking libraries, which we do not
1526+
dnl want.
1527+
*mingw*)
1528+
use_external_signer="no"
1529+
;;
1530+
*)
1531+
use_external_signer="yes"
1532+
AC_DEFINE([ENABLE_EXTERNAL_SIGNER], [1], [Define if external signer support is enabled])
1533+
AC_DEFINE([BOOST_PROCESS_USE_STD_FS], [1], [Defined to avoid Boost::Process trying to use Boost Filesystem])
1534+
;;
1535+
esac
15261536
else
15271537
if test "$use_external_signer" = "yes"; then
15281538
AC_MSG_ERROR([External signing is not supported for this Boost version])

0 commit comments

Comments
 (0)