Skip to content

Commit 4b47cbf

Browse files
authored
Update mac builders to use Circle's gen2 mac runner (#1222)
This runner is faster and more efficient. Also factor the mac configuration into an executor.
1 parent ae24571 commit 4b47cbf

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.circleci/config.yml

+11-12
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ executors:
77
bionic:
88
docker:
99
- image: buildpack-deps:bionic
10+
mac:
11+
environment:
12+
EMSDK_NOTTY: "1"
13+
# Without this, any `brew installl` command will result in self-update of
14+
# brew itself which takes more than 4 minutes.
15+
HOMEBREW_NO_AUTO_UPDATE: "1"
16+
macos:
17+
xcode: "12.5.1"
18+
resource_class: macos.x86.medium.gen2
1019

1120
jobs:
1221
flake8:
@@ -48,13 +57,7 @@ jobs:
4857
source emsdk_env.sh
4958
test/test.py
5059
test-mac:
51-
macos:
52-
xcode: "12.5.1"
53-
environment:
54-
EMSDK_NOTTY: "1"
55-
# Without this, any `brew installl` command will result in self-update of
56-
# brew itself which takes more than 4 minutes.
57-
HOMEBREW_NO_AUTO_UPDATE: "1"
60+
executor: mac
5861
steps:
5962
- checkout
6063
- run:
@@ -190,11 +193,7 @@ jobs:
190193
- run: test/test_bazel.sh
191194

192195
test-bazel-mac:
193-
macos:
194-
xcode: "12.5.1"
195-
environment:
196-
EMSDK_NOTTY: "1"
197-
HOMEBREW_NO_AUTO_UPDATE: "1"
196+
executor: mac
198197
steps:
199198
- checkout
200199
- run: brew install grep

0 commit comments

Comments
 (0)