ci: [refactor] Use --preset=dev-mode in mac_native task
What changed, and why it matters
This is a routine cleanup of Bitcoin Core's continuous integration (CI) configuration for macOS. It replaces a long list of build options with a pre-defined 'dev-mode' preset and shortens the job name shown in GitHub's web interface. There is no change to the actual Bitcoin software that users run, and no security relevance.
No security action needed. Treat as a normal CI maintenance change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit refactors the macOS native CI task to use the CMake preset --preset=dev-mode instead of spelling out individual CMake options (-DBUILD_GUI=ON, -DWITH_ZMQ=ON, -DBUILD_KERNEL_LIB=ON, etc.). It explicitly keeps -DWITH_USDT=OFF, -DREDUCE_EXPORTS=ON, and the stack-size linker flag. The GitHub Actions job label is shortened from ‘macOS native, no depends, sqlite only, gui’ to ‘macOS native’. This affects only CI metadata and build scripts; no source code, consensus logic, networking, or cryptography is modified.
Changed components
.github/workflows/ci.ymlci/test/00_setup_env_mac_native.shInspect captured patch +7 / −2
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e9870e93..1f081919 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -131,7 +131,7 @@ jobs:
include:
- job-type: standard
file-env: './ci/test/00_setup_env_mac_native.sh'
- job-name: 'macOS native, no depends, sqlite only, gui'
+ job-name: 'macOS native'
- job-type: fuzz
file-env: './ci/test/00_setup_env_mac_native_fuzz.sh'
job-name: 'macOS native, fuzz'
diff --git a/ci/test/00_setup_env_mac_native.sh b/ci/test/00_setup_env_mac_native.sh
index 41b97b02..a9b4d5c8 100755
--- a/ci/test/00_setup_env_mac_native.sh
+++ b/ci/test/00_setup_env_mac_native.sh
@@ -10,8 +10,13 @@ export CONTAINER_NAME="ci_mac_native" # macos does not use a container, but the
export PIP_PACKAGES="--break-system-packages pycapnp zmq"
export GOAL="install deploy"
export CMAKE_GENERATOR="Ninja"
-export BITCOIN_CONFIG="-DBUILD_GUI=ON -DWITH_ZMQ=ON -DBUILD_KERNEL_LIB=ON -DBUILD_UTIL_CHAINSTATE=ON -DBUILD_KERNEL_TEST=ON -DREDUCE_EXPORTS=ON -DCMAKE_EXE_LINKER_FLAGS='-Wl,-stack_size -Wl,0x80000'"
export CI_OS_NAME="macos"
export NO_DEPENDS=1
export OSX_SDK=""
+export BITCOIN_CONFIG="\
+ --preset=dev-mode \
+ -DWITH_USDT=OFF \
+ -DREDUCE_EXPORTS=ON \
+ -DCMAKE_EXE_LINKER_FLAGS='-Wl,-stack_size -Wl,0x80000' \
+"
export BITCOIN_CMD="bitcoin -m" # Used in functional tests
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.