mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-24 18:23:26 -03:00
ci: Install missing nproc in macos task
This avoids special-casing macos
This commit is contained in:
parent
faf7a2bccc
commit
fa1cffacae
2 changed files with 2 additions and 3 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -105,7 +105,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
# A workaround for "The `brew link` step did not complete successfully" error.
|
# A workaround for "The `brew link` step did not complete successfully" error.
|
||||||
brew install --quiet python@3 || brew link --overwrite python@3
|
brew install --quiet python@3 || brew link --overwrite python@3
|
||||||
brew install --quiet ninja pkg-config gnu-getopt ccache boost libevent miniupnpc zeromq qt@5 qrencode
|
brew install --quiet coreutils ninja pkg-config gnu-getopt ccache boost libevent miniupnpc zeromq qt@5 qrencode
|
||||||
|
|
||||||
- name: Set Ccache directory
|
- name: Set Ccache directory
|
||||||
run: echo "CCACHE_DIR=${RUNNER_TEMP}/ccache_dir" >> "$GITHUB_ENV"
|
run: echo "CCACHE_DIR=${RUNNER_TEMP}/ccache_dir" >> "$GITHUB_ENV"
|
||||||
|
|
|
@ -13,12 +13,11 @@ export LSAN_OPTIONS="suppressions=${BASE_ROOT_DIR}/test/sanitizer_suppressions/l
|
||||||
export TSAN_OPTIONS="suppressions=${BASE_ROOT_DIR}/test/sanitizer_suppressions/tsan:halt_on_error=1"
|
export TSAN_OPTIONS="suppressions=${BASE_ROOT_DIR}/test/sanitizer_suppressions/tsan:halt_on_error=1"
|
||||||
export UBSAN_OPTIONS="suppressions=${BASE_ROOT_DIR}/test/sanitizer_suppressions/ubsan:print_stacktrace=1:halt_on_error=1:report_error_type=1"
|
export UBSAN_OPTIONS="suppressions=${BASE_ROOT_DIR}/test/sanitizer_suppressions/ubsan:print_stacktrace=1:halt_on_error=1:report_error_type=1"
|
||||||
|
|
||||||
|
echo "Number of available processing units: $(nproc)"
|
||||||
if [ "$CI_OS_NAME" == "macos" ]; then
|
if [ "$CI_OS_NAME" == "macos" ]; then
|
||||||
top -l 1 -s 0 | awk ' /PhysMem/ {print}'
|
top -l 1 -s 0 | awk ' /PhysMem/ {print}'
|
||||||
echo "Number of CPUs: $(sysctl -n hw.logicalcpu)"
|
|
||||||
else
|
else
|
||||||
free -m -h
|
free -m -h
|
||||||
echo "Number of CPUs (nproc): $(nproc)"
|
|
||||||
echo "System info: $(uname --kernel-name --kernel-release)"
|
echo "System info: $(uname --kernel-name --kernel-release)"
|
||||||
lscpu
|
lscpu
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue