Skip to content

Commit 6ce5e8f

Browse files
committed
Merge bitcoin#28278: ci: Refactor: Remove CI_USE_APT_INSTALL
fa26387 ci: Refactor: Remove CI_USE_APT_INSTALL (MarcoFalke) Pull request description: Seems odd to use `CI_USE_APT_INSTALL == no` as an alias for `CI_OS_NAME == macos`. Fix this by removing the alias. Also, for github CI: * restore MAKEJOBS to the same value as in cirrus.yml. * remove cirrus-only PACKAGE_MANAGER_INSTALL. * remove redundant TEST_RUNNER_TIMEOUT_FACTOR * Add M1 link ACKs for top commit: hebasto: ACK fa26387. Tree-SHA512: e235aa70abd60738a9ad1531284a94e2122c9c7a22c2514ede437b49da5c06b2597fba7fccf615541fb3adb4e1f8076aa8c6047f926393191a629713554ab000
2 parents de197c1 + fa26387 commit 6ce5e8f

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.cirrus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ env: # Global defaults
33
PACKAGE_MANAGER_INSTALL: "apt-get update && apt-get install -y"
44
MAKEJOBS: "-j10"
55
TEST_RUNNER_PORT_MIN: "14000" # Must be larger than 12321, which is used for the http cache. See https://cirrus-ci.org/guide/writing-tasks/#http-cache
6-
CI_FAILFAST_TEST_LEAVE_DANGLING: "1" # Cirrus CI does not care about dangling process and setting this variable avoids killing the CI script itself on error
6+
CI_FAILFAST_TEST_LEAVE_DANGLING: "1" # Cirrus CI does not care about dangling processes and setting this variable avoids killing the CI script itself on error
77
CCACHE_MAXSIZE: "200M"
88
CCACHE_DIR: "/tmp/ccache_dir"
99
CCACHE_NOHASHDIR: "1" # Debug info might contain a stale path if the build dir changes, but this is fine

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,22 @@ concurrency:
1919

2020
env:
2121
DANGER_RUN_CI_ON_HOST: 1
22-
TEST_RUNNER_TIMEOUT_FACTOR: 40
22+
CI_FAILFAST_TEST_LEAVE_DANGLING: 1 # GHA does not care about dangling processes and setting this variable avoids killing the CI script itself on error
23+
MAKEJOBS: '-j10'
2324

2425
jobs:
2526
macos-native-x86_64:
2627
name: macOS 13 native, x86_64 [no depends, sqlite only, gui]
2728
# Use latest image, but hardcode version to avoid silent upgrades (and breaks).
2829
# See: https://github.com/actions/runner-images#available-images.
29-
runs-on: macos-13
30+
runs-on: macos-13 # Use M1 once available https://github.com/github/roadmap/issues/528
3031

3132
# No need to run on the read-only mirror, unless it is a PR.
3233
if: github.repository != 'bitcoin-core/gui' || github.event_name == 'pull_request'
3334

3435
timeout-minutes: 120
3536

3637
env:
37-
MAKEJOBS: '-j4'
38-
CI_USE_APT_INSTALL: 'no'
39-
PACKAGE_MANAGER_INSTALL: 'echo' # Nothing to do
4038
FILE_ENV: './ci/test/00_setup_env_mac_native.sh'
4139
BASE_ROOT_DIR: ${{ github.workspace }}
4240

ci/test/01_base_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fi
2222
if [[ $CI_IMAGE_NAME_TAG == *centos* ]]; then
2323
bash -c "dnf -y install epel-release"
2424
bash -c "dnf -y --allowerasing install $CI_BASE_PACKAGES $PACKAGES"
25-
elif [ "$CI_USE_APT_INSTALL" != "no" ]; then
25+
elif [ "$CI_OS_NAME" != "macos" ]; then
2626
if [[ -n "${APPEND_APT_SOURCES_LIST}" ]]; then
2727
echo "${APPEND_APT_SOURCES_LIST}" >> /etc/apt/sources.list
2828
fi

0 commit comments

Comments
 (0)