Skip to content

Commit 4b9e83d

Browse files
authored
Remove Intel mac CircleCI configuration (#1409)
Also switch bazel-mac to the arm64 config. The CircleCI Intel mac config will be turned down soon.
1 parent 0e8c5bb commit 4b9e83d

File tree

4 files changed

+35
-34
lines changed

4 files changed

+35
-34
lines changed

.circleci/config.yml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@ executors:
77
ubuntu:
88
docker:
99
- image: buildpack-deps:focal
10-
mac:
11-
environment:
12-
EMSDK_NOTTY: "1"
13-
# Without this, any `brew install` 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
1910
mac_arm64:
2011
environment:
2112
EMSDK_NOTTY: "1"
@@ -94,11 +85,6 @@ jobs:
9485
name: Install debian packages
9586
command: sudo apt-get update -q && sudo apt-get install -q cmake build-essential openjdk-8-jre-headless
9687
- run: test/test.sh
97-
test-mac:
98-
executor: mac
99-
steps:
100-
- setup-macos
101-
- test-macos
10288
test-mac-arm64:
10389
executor: mac_arm64
10490
steps:
@@ -257,11 +243,10 @@ jobs:
257243
apt-get install -q -y bazel
258244
- run: test/test_bazel.sh
259245

260-
test-bazel-mac:
261-
executor: mac
246+
test-bazel-mac-arm64:
247+
executor: mac_arm64
262248
steps:
263249
- checkout
264-
- run: brew install grep
265250
- run:
266251
name: install bazelisk
267252
command: |
@@ -301,9 +286,6 @@ workflows:
301286
test-linux-arm64:
302287
jobs:
303288
- test-linux-arm64
304-
test-mac:
305-
jobs:
306-
- test-mac
307289
test-mac-arm64:
308290
jobs:
309291
- test-mac-arm64
@@ -328,9 +310,9 @@ workflows:
328310
test-bazel-linux:
329311
jobs:
330312
- test-bazel-linux
331-
test-bazel-mac:
313+
test-bazel-mac-arm64:
332314
jobs:
333-
- test-bazel-mac
315+
- test-bazel-mac-arm64
334316
test-bazel-windows:
335317
jobs:
336318
- test-bazel-windows

scripts/get_release_info.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env python3
2+
3+
import json
4+
import os
5+
import sys
6+
7+
def get_latest(tagfile):
8+
with open(tagfile) as f:
9+
versions = json.load(f)
10+
print(versions['aliases']['latest'])
11+
return 0
12+
13+
14+
def get_hash(tagfile, version):
15+
with open(tagfile) as f:
16+
versions = json.load(f)
17+
print(versions['releases'][version])
18+
return 0
19+
20+
21+
if __name__ == '__main__':
22+
if sys.argv[2] == 'latest':
23+
sys.exit(get_latest(sys.argv[1]))
24+
if sys.argv[2] == 'hash':
25+
sys.exit(get_hash(sys.argv[1], sys.argv[3]))

test/test_bazel.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,10 @@ set -x
66
set -e
77

88
# Get the latest version number from emscripten-releases-tag.json.
9-
VER=$(grep -oP '(?<=latest\": \")([\d\.]+)(?=\")' \
10-
emscripten-releases-tags.json \
11-
| sed --expression "s/\./\\\./g")
9+
VER=$(scripts/get_release_info.py emscripten-releases-tags.json latest)
10+
1211
# Based on the latest version number, get the commit hash for that version.
13-
HASH=$(grep "\"${VER}\"" emscripten-releases-tags.json \
14-
| grep -v latest \
15-
| cut -f4 -d\")
12+
HASH=$(scripts/get_release_info.py emscripten-releases-tags.json hash ${VER})
1613

1714
FAILMSG="!!! scripts/update_bazel_workspace.py needs to be run !!!"
1815

test/test_bazel_mac.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,10 @@ set -x
66
set -e
77

88
# Get the latest version number from emscripten-releases-tag.json.
9-
VER=$(ggrep -oP '(?<=latest\": \")([\d\.]+)(?=\")' \
10-
emscripten-releases-tags.json \
11-
| sed "s/\./\\\./g")
9+
VER=$(scripts/get_release_info.py emscripten-releases-tags.json latest)
10+
1211
# Based on the latest version number, get the commit hash for that version.
13-
HASH=$(grep "\"${VER}\"" emscripten-releases-tags.json \
14-
| grep -v latest \
15-
| cut -f4 -d\")
12+
HASH=$(scripts/get_release_info.py emscripten-releases-tags.json hash ${VER})
1613

1714
FAILMSG="!!! scripts/update_bazel_workspace.py needs to be run !!!"
1815

0 commit comments

Comments
 (0)