mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-09 19:37:27 -03:00
ci, refactor: Add MACOS_NATIVE_TASK_TEMPLATE
A native macOS task does not aware of Linux container settings, and it does not use the `depends_built_cache`.
This commit is contained in:
parent
e3b06e8dd8
commit
8e017f3288
1 changed files with 14 additions and 8 deletions
22
.cirrus.yml
22
.cirrus.yml
|
@ -35,22 +35,30 @@ base_template: &BASE_TEMPLATE
|
||||||
|
|
||||||
main_template: &MAIN_TEMPLATE
|
main_template: &MAIN_TEMPLATE
|
||||||
timeout_in: 120m # https://cirrus-ci.org/faq/#instance-timed-out
|
timeout_in: 120m # https://cirrus-ci.org/faq/#instance-timed-out
|
||||||
|
ccache_cache:
|
||||||
|
folder: "/tmp/ccache_dir"
|
||||||
|
ci_script:
|
||||||
|
- ./ci/test_run_all.sh
|
||||||
|
|
||||||
|
global_task_template: &GLOBAL_TASK_TEMPLATE
|
||||||
|
<< : *BASE_TEMPLATE
|
||||||
container:
|
container:
|
||||||
# https://cirrus-ci.org/faq/#are-there-any-limits
|
# https://cirrus-ci.org/faq/#are-there-any-limits
|
||||||
# Each project has 16 CPU in total, assign 2 to each container, so that 8 tasks run in parallel
|
# Each project has 16 CPU in total, assign 2 to each container, so that 8 tasks run in parallel
|
||||||
cpu: 2
|
cpu: 2
|
||||||
greedy: true
|
greedy: true
|
||||||
memory: 8G # Set to 8GB to avoid OOM. https://cirrus-ci.org/guide/linux/#linux-containers
|
memory: 8G # Set to 8GB to avoid OOM. https://cirrus-ci.org/guide/linux/#linux-containers
|
||||||
ccache_cache:
|
|
||||||
folder: "/tmp/ccache_dir"
|
|
||||||
depends_built_cache:
|
depends_built_cache:
|
||||||
folder: "depends/built"
|
folder: "depends/built"
|
||||||
fingerprint_script: echo $CIRRUS_TASK_NAME $(git rev-list -1 HEAD ./depends)
|
fingerprint_script: echo $CIRRUS_TASK_NAME $(git rev-list -1 HEAD ./depends)
|
||||||
ci_script:
|
<< : *MAIN_TEMPLATE
|
||||||
- ./ci/test_run_all.sh
|
|
||||||
|
|
||||||
global_task_template: &GLOBAL_TASK_TEMPLATE
|
macos_native_task_template: &MACOS_NATIVE_TASK_TEMPLATE
|
||||||
<< : *BASE_TEMPLATE
|
<< : *BASE_TEMPLATE
|
||||||
|
check_clang_script:
|
||||||
|
- clang --version
|
||||||
|
brew_install_script:
|
||||||
|
- brew install boost libevent qt@5 miniupnpc libnatpmp ccache zeromq qrencode libtool automake gnu-getopt
|
||||||
<< : *MAIN_TEMPLATE
|
<< : *MAIN_TEMPLATE
|
||||||
|
|
||||||
compute_credits_template: &CREDITS_TEMPLATE
|
compute_credits_template: &CREDITS_TEMPLATE
|
||||||
|
@ -307,12 +315,10 @@ task:
|
||||||
|
|
||||||
task:
|
task:
|
||||||
name: 'macOS 12 native [gui, system sqlite only] [no depends]'
|
name: 'macOS 12 native [gui, system sqlite only] [no depends]'
|
||||||
brew_install_script:
|
|
||||||
- brew install boost libevent qt@5 miniupnpc libnatpmp ccache zeromq qrencode libtool automake gnu-getopt
|
|
||||||
<< : *GLOBAL_TASK_TEMPLATE
|
|
||||||
macos_instance:
|
macos_instance:
|
||||||
# Use latest image, but hardcode version to avoid silent upgrades (and breaks)
|
# Use latest image, but hardcode version to avoid silent upgrades (and breaks)
|
||||||
image: monterey-xcode-13.3 # https://cirrus-ci.org/guide/macOS
|
image: monterey-xcode-13.3 # https://cirrus-ci.org/guide/macOS
|
||||||
|
<< : *MACOS_NATIVE_TASK_TEMPLATE
|
||||||
env:
|
env:
|
||||||
<< : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
|
<< : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
|
||||||
CI_USE_APT_INSTALL: "no"
|
CI_USE_APT_INSTALL: "no"
|
||||||
|
|
Loading…
Reference in a new issue