Skip to content

Commit a58c7d2

Browse files
committed
Merge #213: Update macOS image for CI
3b2c675 Update macOS image for CI (Pieter Wuille) Pull request description: ACKs for top commit: real-or-random: utACK 3b2c675 jonasnick: ACK 3b2c675 Tree-SHA512: 21987ea64929f7b43ea9a6f7eaa98bf47345aa03af10c45c0aa7a6e19b3a21c4a5d2aef0f6b99d6ddb4bf97752c8e2cdaeec619d4ef105e5d931790479de8ef5
2 parents d22774e + 3b2c675 commit a58c7d2

File tree

1 file changed

+10
-44
lines changed

1 file changed

+10
-44
lines changed

.cirrus.yml

+10-44
Original file line numberDiff line numberDiff line change
@@ -119,63 +119,29 @@ task:
119119
<< : *CAT_LOGS
120120

121121
task:
122-
name: "x86_64: macOS Catalina"
122+
name: "arm64: macOS Ventura"
123123
macos_instance:
124-
image: catalina-base
124+
image: ghcr.io/cirruslabs/macos-ventura-base:latest
125125
# tasks with valgrind enabled take about 90 minutes
126126
timeout_in: 120m
127127
env:
128128
HOMEBREW_NO_AUTO_UPDATE: 1
129129
HOMEBREW_NO_INSTALL_CLEANUP: 1
130-
# Cirrus gives us a fixed number of 12 virtual CPUs. Not that we even have that many jobs at the moment...
131-
MAKEFLAGS: -j13
130+
# Cirrus gives us a fixed number of 4 virtual CPUs. Not that we even have that many jobs at the moment...
131+
MAKEFLAGS: -j5
132132
matrix:
133133
<< : *ENV_MATRIX
134+
env:
135+
ASM: no
136+
WITH_VALGRIND: no
137+
CTIMETEST: no
134138
matrix:
135139
- env:
136-
CC: gcc-9
140+
CC: gcc
137141
- env:
138142
CC: clang
139-
# Update Command Line Tools
140-
# Uncomment this if the Command Line Tools on the CirrusCI macOS image are too old to brew valgrind.
141-
# See https://apple.stackexchange.com/a/195963 for the implementation.
142-
## update_clt_script:
143-
## - system_profiler SPSoftwareDataType
144-
## - touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
145-
## - |-
146-
## PROD=$(softwareupdate -l | grep "*.*Command Line" | tail -n 1 | awk -F"*" '{print $2}' | sed -e 's/^ *//' | sed 's/Label: //g' | tr -d '\n')
147-
## # For debugging
148-
## - softwareupdate -l && echo "PROD: $PROD"
149-
## - softwareupdate -i "$PROD" --verbose
150-
## - rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
151-
##
152-
brew_valgrind_pre_script:
153-
# Retry a few times because this tends to fail randomly.
154-
- for i in {1..5}; do brew update && break || sleep 15; done
155-
- brew config
156-
- brew tap LouisBrunner/valgrind
157-
# Fetch valgrind source but don't build it yet.
158-
- brew fetch --HEAD LouisBrunner/valgrind/valgrind
159-
brew_valgrind_cache:
160-
# This is $(brew --cellar valgrind) but command substition does not work here.
161-
folder: /usr/local/Cellar/valgrind
162-
# Rebuild cache if ...
163-
fingerprint_script:
164-
# ... macOS version changes:
165-
- sw_vers
166-
# ... brew changes:
167-
- brew config
168-
# ... valgrind changes:
169-
- git -C "$(brew --cache)/valgrind--git" rev-parse HEAD
170-
populate_script:
171-
# If there's no hit in the cache, build and install valgrind.
172-
- brew install --HEAD LouisBrunner/valgrind/valgrind
173-
brew_valgrind_post_script:
174-
# If we have restored valgrind from the cache, tell brew to create symlink to the PATH.
175-
# If we haven't restored from cached (and just run brew install), this is a no-op.
176-
- brew link valgrind
177143
brew_script:
178-
- brew install automake libtool gcc@9
144+
- brew install automake libtool gcc
179145
<< : *MERGE_BASE
180146
test_script:
181147
- ./ci/cirrus.sh

0 commit comments

Comments
 (0)