File tree Expand file tree Collapse file tree 4 files changed +35
-34
lines changed Expand file tree Collapse file tree 4 files changed +35
-34
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,6 @@ executors:
7
7
ubuntu :
8
8
docker :
9
9
- 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
19
10
mac_arm64 :
20
11
environment :
21
12
EMSDK_NOTTY : " 1"
94
85
name : Install debian packages
95
86
command : sudo apt-get update -q && sudo apt-get install -q cmake build-essential openjdk-8-jre-headless
96
87
- run : test/test.sh
97
- test-mac :
98
- executor : mac
99
- steps :
100
- - setup-macos
101
- - test-macos
102
88
test-mac-arm64 :
103
89
executor : mac_arm64
104
90
steps :
@@ -257,11 +243,10 @@ jobs:
257
243
apt-get install -q -y bazel
258
244
- run : test/test_bazel.sh
259
245
260
- test-bazel-mac :
261
- executor : mac
246
+ test-bazel-mac-arm64 :
247
+ executor : mac_arm64
262
248
steps :
263
249
- checkout
264
- - run : brew install grep
265
250
- run :
266
251
name : install bazelisk
267
252
command : |
@@ -301,9 +286,6 @@ workflows:
301
286
test-linux-arm64 :
302
287
jobs :
303
288
- test-linux-arm64
304
- test-mac :
305
- jobs :
306
- - test-mac
307
289
test-mac-arm64 :
308
290
jobs :
309
291
- test-mac-arm64
@@ -328,9 +310,9 @@ workflows:
328
310
test-bazel-linux :
329
311
jobs :
330
312
- test-bazel-linux
331
- test-bazel-mac :
313
+ test-bazel-mac-arm64 :
332
314
jobs :
333
- - test-bazel-mac
315
+ - test-bazel-mac-arm64
334
316
test-bazel-windows :
335
317
jobs :
336
318
- test-bazel-windows
Original file line number Diff line number Diff line change
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 ]))
Original file line number Diff line number Diff line change 6
6
set -e
7
7
8
8
# 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
+
12
11
# 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} )
16
13
17
14
FAILMSG=" !!! scripts/update_bazel_workspace.py needs to be run !!!"
18
15
Original file line number Diff line number Diff line change 6
6
set -e
7
7
8
8
# 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
+
12
11
# 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} )
16
13
17
14
FAILMSG=" !!! scripts/update_bazel_workspace.py needs to be run !!!"
18
15
You can’t perform that action at this time.
0 commit comments