forked from dashpay/dash
-
Notifications
You must be signed in to change notification settings - Fork 717
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #2922: [GA] Bump native macOS runner versions
454fbfd [GA] Bump native macOS runner versions (Fuzzbawls) Pull request description: A recent 3rd party server outage for the miniupnpc library has caused macOS 11 jobs to fail. While the homebrew package manager for macOS has fixed the issue on their end, GitHub has no clear intention to update their macOS 11 runner image due to macOS 11 runners already being deprecated. macOS 11 support will be removed from GA completely on June, 28 2024. Pre-emptively bump the os runner versions we use to macOS 12 and macOS 14 (the latter of which runs on Apple's new CPU architecture). Relevant and required build system changes have also been applied to support the new macOS 14 runner environment. ACKs for top commit: 454fbfd panleone: utACK 454fbfd Liquid369: tACK 454fbfd Tree-SHA512: bb5b1965ae99b9e7eda0d464d07b1d8226a00a0aa27be84b2d7cf18f265ecdd759b5eaeba83316a75376100f8a37bb61fe96048a40746ed71febb3e2505cedd8
- Loading branch information
Showing
5 changed files
with
32 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,19 +88,19 @@ jobs: | |
cxx: g++ | ||
|
||
- name: macOS | ||
os: macos-11 | ||
packages: llvm@12 [email protected] autoconf automake berkeley-db@4 libtool [email protected] miniupnpc libnatpmp pkg-config libevent qrencode gmp libsodium rust | ||
os: macos-12 | ||
packages: llvm@13 [email protected] autoconf automake berkeley-db@4 libtool [email protected] miniupnpc libnatpmp pkg-config libevent qrencode gmp libsodium rust | ||
no_qt: true | ||
boost_root: true | ||
cc: $(brew --prefix llvm@12)/bin/clang | ||
cxx: $(brew --prefix llvm@12)/bin/clang++ | ||
cc: $(brew --prefix llvm@13)/bin/clang | ||
cxx: $(brew --prefix llvm@13)/bin/clang++ | ||
|
||
- name: macOS-latest | ||
os: macos-latest | ||
packages: llvm@13 [email protected] autoconf automake berkeley-db@4 libtool [email protected] miniupnpc libnatpmp pkg-config qt@5 zmq libevent qrencode gmp libsodium rust | ||
os: macos-14 | ||
packages: llvm@14 [email protected] autoconf automake berkeley-db@4 libtool [email protected] miniupnpc libnatpmp pkg-config qt@5 zmq libevent qrencode gmp libsodium rust | ||
boost_root: true | ||
cc: $(brew --prefix llvm@13)/bin/clang | ||
cxx: $(brew --prefix llvm@13)/bin/clang++ | ||
cc: $(brew --prefix llvm@14)/bin/clang | ||
cxx: $(brew --prefix llvm@14)/bin/clang++ | ||
|
||
steps: | ||
- name: Get Source | ||
|
@@ -115,11 +115,6 @@ jobs: | |
fi | ||
if [[ ${{ matrix.config.os }} = macos* ]]; then | ||
brew install "$APT_BASE" ${{ matrix.config.packages }} | ||
# GA's macOS 11 image is inconsistent as to if it includes a pre-installed version of boost. Force linking | ||
# to the specified version (1.76), which will overwrite the symlinks to a pre-existing version if it exists. | ||
if [ "${{ matrix.config.os }}" = "macos-11" ]; then | ||
brew link --overwrite -f [email protected] | ||
fi | ||
fi | ||
- name: ccache cache files | ||
|
@@ -139,8 +134,13 @@ jobs: | |
fi | ||
if [ "${{ matrix.config.boost_root }}" = "true" ]; then | ||
export CI_BOOST=1 | ||
export CPPFLAGS="-I/usr/local/opt/[email protected]/include" | ||
export LDFLAGS="-L/usr/local/opt/[email protected]/lib" | ||
if [ "${{ matrix.config.os }}" = "macos-14" ]; then | ||
export LDFLAGS="-L/opt/homebrew/opt/[email protected]/lib" | ||
export CPPFLAGS="-I/opt/homebrew/opt/[email protected]/include" | ||
else | ||
export CPPFLAGS="-I/usr/local/opt/[email protected]/include" | ||
export LDFLAGS="-L/usr/local/opt/[email protected]/lib" | ||
fi | ||
fi | ||
fi | ||
export CC | ||
|
@@ -188,7 +188,7 @@ jobs: | |
|
||
- name: x64-macOS | ||
id: macOS-nodepends | ||
os: macos-11 | ||
os: macos-12 | ||
brew_install: autoconf automake ccache berkeley-db@4 libtool [email protected] miniupnpc libnatpmp pkg-config [email protected] libevent qrencode gmp libsodium rust librsvg | ||
unit_tests: true | ||
functional_tests: true | ||
|
@@ -198,14 +198,14 @@ jobs: | |
|
||
- name: x64-macOS-latest | ||
id: macOS-nodepends-latest | ||
os: macos-latest | ||
os: macos-14 | ||
brew_install: autoconf automake ccache berkeley-db@4 libtool [email protected] miniupnpc libnatpmp pkg-config [email protected] qt@5 zmq libevent qrencode gmp libsodium rust librsvg | ||
unit_tests: true | ||
functional_tests: true | ||
goal: deploy | ||
cc: clang | ||
cxx: clang++ | ||
BITCOIN_CONFIG: "--enable-zmq --enable-gui --enable-reduce-exports --enable-werror --enable-debug --with-boost=/usr/local/opt/[email protected]" | ||
BITCOIN_CONFIG: "--enable-zmq --enable-gui --enable-reduce-exports --enable-werror --enable-debug --with-boost=/opt/homebrew/opt/[email protected]" | ||
|
||
steps: | ||
- name: Get Source | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,17 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | |
else() | ||
set(BerkeleyDB_ROOT_DIR "/usr/local/Cellar/berkeley-db@4/${BDB_VER}/" ) | ||
endif() | ||
# Github Actions specific Boost override (macOS only) | ||
if(DEFINED ENV{CI_BOOST}) | ||
if(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "arm") | ||
set(BOOST_R "--with-boost=/opt/homebrew/opt/[email protected]") | ||
set(ENV{BOOSTROOT} "/opt/homebrew/opt/[email protected]") | ||
else() | ||
set(BOOST_R "--with-boost=/usr/local/opt/[email protected]") | ||
set(ENV{BOOSTROOT} "/usr/local/opt/[email protected]") | ||
endif() | ||
message(STATUS "Boost Root set to: ${BOOST_R}") | ||
endif() | ||
set(Boost_USE_MULTITHREADED ON) | ||
set(Boost_NO_BOOST_CMAKE ON) | ||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | ||
|
@@ -74,13 +85,6 @@ if(DEFINED ENV{NO_QT}) | |
message(STATUS "Skipping GUI Wallet Build!") | ||
endif() | ||
|
||
# Github Actions specific Boost override | ||
if(DEFINED ENV{CI_BOOST}) | ||
set(BOOST_R "--with-boost=/usr/local/opt/[email protected]") | ||
set(ENV{BOOSTROOT} "/usr/local/opt/[email protected]") | ||
message(STATUS "Boost Root set to: ${BOOST_R}") | ||
endif() | ||
|
||
# Find Dependencies | ||
find_package(BerkeleyDB ${BDB_VER} REQUIRED) | ||
if(BerkeleyDB_FOUND) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters