Skip to content

Commit c0ae48c

Browse files
committed
Update macOS image for CI
1 parent 6138d73 commit c0ae48c

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
@@ -107,61 +107,27 @@ task:
107107
<< : *CAT_LOGS
108108

109109
task:
110-
name: "x86_64: macOS Catalina"
110+
name: "arm64: macOS Ventura"
111111
macos_instance:
112-
image: catalina-base
112+
image: ghcr.io/cirruslabs/macos-ventura-base:latest
113113
env:
114114
HOMEBREW_NO_AUTO_UPDATE: 1
115115
HOMEBREW_NO_INSTALL_CLEANUP: 1
116-
# Cirrus gives us a fixed number of 12 virtual CPUs. Not that we even have that many jobs at the moment...
117-
MAKEFLAGS: -j13
116+
# Cirrus gives us a fixed number of 4 virtual CPUs. Not that we even have that many jobs at the moment...
117+
MAKEFLAGS: -j5
118118
matrix:
119119
<< : *ENV_MATRIX
120+
env:
121+
ASM: no
122+
WITH_VALGRIND: no
123+
CTIMETEST: no
120124
matrix:
121125
- env:
122-
CC: gcc-9
126+
CC: gcc
123127
- env:
124128
CC: clang
125-
# Update Command Line Tools
126-
# Uncomment this if the Command Line Tools on the CirrusCI macOS image are too old to brew valgrind.
127-
# See https://apple.stackexchange.com/a/195963 for the implementation.
128-
## update_clt_script:
129-
## - system_profiler SPSoftwareDataType
130-
## - touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
131-
## - |-
132-
## PROD=$(softwareupdate -l | grep "*.*Command Line" | tail -n 1 | awk -F"*" '{print $2}' | sed -e 's/^ *//' | sed 's/Label: //g' | tr -d '\n')
133-
## # For debugging
134-
## - softwareupdate -l && echo "PROD: $PROD"
135-
## - softwareupdate -i "$PROD" --verbose
136-
## - rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
137-
##
138-
brew_valgrind_pre_script:
139-
# Retry a few times because this tends to fail randomly.
140-
- for i in {1..5}; do brew update && break || sleep 15; done
141-
- brew config
142-
- brew tap LouisBrunner/valgrind
143-
# Fetch valgrind source but don't build it yet.
144-
- brew fetch --HEAD LouisBrunner/valgrind/valgrind
145-
brew_valgrind_cache:
146-
# This is $(brew --cellar valgrind) but command substition does not work here.
147-
folder: /usr/local/Cellar/valgrind
148-
# Rebuild cache if ...
149-
fingerprint_script:
150-
# ... macOS version changes:
151-
- sw_vers
152-
# ... brew changes:
153-
- brew config
154-
# ... valgrind changes:
155-
- git -C "$(brew --cache)/valgrind--git" rev-parse HEAD
156-
populate_script:
157-
# If there's no hit in the cache, build and install valgrind.
158-
- brew install --HEAD LouisBrunner/valgrind/valgrind
159-
brew_valgrind_post_script:
160-
# If we have restored valgrind from the cache, tell brew to create symlink to the PATH.
161-
# If we haven't restored from cached (and just run brew install), this is a no-op.
162-
- brew link valgrind
163129
brew_script:
164-
- brew install automake libtool gcc@9
130+
- brew install automake libtool gcc
165131
<< : *MERGE_BASE
166132
test_script:
167133
- ./ci/cirrus.sh

0 commit comments

Comments
 (0)