File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export LC_ALL=C.UTF-8
99export HOST=x86_64-apple-darwin
1010# Homebrew's python@3.12 is marked as externally managed (PEP 668).
1111# Therefore, `--break-system-packages` is needed.
12+ export CONTAINER_NAME=" ci_mac_native" # macos does not use a container, but the env var is needed for logging
1213export PIP_PACKAGES=" --break-system-packages zmq"
1314export GOAL=" install"
1415export BITCOIN_CONFIG=" --with-gui --with-miniupnpc --with-natpmp --enable-reduce-exports"
Original file line number Diff line number Diff line change 145145bash -c " ${MAYBE_BEAR} ${MAYBE_TOKEN} make $MAKEJOBS $GOAL " || ( echo " Build failure. Verbose build follows." && make " $GOAL " V=1 ; false )
146146
147147bash -c " ${PRINT_CCACHE_STATISTICS} "
148+ if [ " $CI " = " true" ]; then
149+ hit_rate=$( ccache -s | grep " Hits:" | head -1 | sed ' s/.*(\(.*\)%).*/\1/' )
150+ if [ " ${hit_rate% .* } " -lt 75 ]; then
151+ echo " ::notice title=low ccache hitrate::Ccache hit-rate in $CONTAINER_NAME was $hit_rate %"
152+ fi
153+ fi
148154du -sh " ${DEPENDS_DIR} " /* /
149155du -sh " ${PREVIOUS_RELEASES_DIR} "
150156
You can’t perform that action at this time.
0 commit comments