Remove Intel mac CircleCI configuration (#1409)
Also switch bazel-mac to the arm64 config. The CircleCI Intel mac config will be turned down soon.
This commit is contained in:
@@ -7,15 +7,6 @@ executors:
|
|||||||
ubuntu:
|
ubuntu:
|
||||||
docker:
|
docker:
|
||||||
- image: buildpack-deps:focal
|
- image: buildpack-deps:focal
|
||||||
mac:
|
|
||||||
environment:
|
|
||||||
EMSDK_NOTTY: "1"
|
|
||||||
# Without this, any `brew install` command will result in self-update of
|
|
||||||
# brew itself which takes more than 4 minutes.
|
|
||||||
HOMEBREW_NO_AUTO_UPDATE: "1"
|
|
||||||
macos:
|
|
||||||
xcode: "12.5.1"
|
|
||||||
resource_class: macos.x86.medium.gen2
|
|
||||||
mac_arm64:
|
mac_arm64:
|
||||||
environment:
|
environment:
|
||||||
EMSDK_NOTTY: "1"
|
EMSDK_NOTTY: "1"
|
||||||
@@ -94,11 +85,6 @@ jobs:
|
|||||||
name: Install debian packages
|
name: Install debian packages
|
||||||
command: sudo apt-get update -q && sudo apt-get install -q cmake build-essential openjdk-8-jre-headless
|
command: sudo apt-get update -q && sudo apt-get install -q cmake build-essential openjdk-8-jre-headless
|
||||||
- run: test/test.sh
|
- run: test/test.sh
|
||||||
test-mac:
|
|
||||||
executor: mac
|
|
||||||
steps:
|
|
||||||
- setup-macos
|
|
||||||
- test-macos
|
|
||||||
test-mac-arm64:
|
test-mac-arm64:
|
||||||
executor: mac_arm64
|
executor: mac_arm64
|
||||||
steps:
|
steps:
|
||||||
@@ -257,11 +243,10 @@ jobs:
|
|||||||
apt-get install -q -y bazel
|
apt-get install -q -y bazel
|
||||||
- run: test/test_bazel.sh
|
- run: test/test_bazel.sh
|
||||||
|
|
||||||
test-bazel-mac:
|
test-bazel-mac-arm64:
|
||||||
executor: mac
|
executor: mac_arm64
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: brew install grep
|
|
||||||
- run:
|
- run:
|
||||||
name: install bazelisk
|
name: install bazelisk
|
||||||
command: |
|
command: |
|
||||||
@@ -301,9 +286,6 @@ workflows:
|
|||||||
test-linux-arm64:
|
test-linux-arm64:
|
||||||
jobs:
|
jobs:
|
||||||
- test-linux-arm64
|
- test-linux-arm64
|
||||||
test-mac:
|
|
||||||
jobs:
|
|
||||||
- test-mac
|
|
||||||
test-mac-arm64:
|
test-mac-arm64:
|
||||||
jobs:
|
jobs:
|
||||||
- test-mac-arm64
|
- test-mac-arm64
|
||||||
@@ -328,9 +310,9 @@ workflows:
|
|||||||
test-bazel-linux:
|
test-bazel-linux:
|
||||||
jobs:
|
jobs:
|
||||||
- test-bazel-linux
|
- test-bazel-linux
|
||||||
test-bazel-mac:
|
test-bazel-mac-arm64:
|
||||||
jobs:
|
jobs:
|
||||||
- test-bazel-mac
|
- test-bazel-mac-arm64
|
||||||
test-bazel-windows:
|
test-bazel-windows:
|
||||||
jobs:
|
jobs:
|
||||||
- test-bazel-windows
|
- test-bazel-windows
|
||||||
|
|||||||
25
scripts/get_release_info.py
Executable file
25
scripts/get_release_info.py
Executable file
@@ -0,0 +1,25 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def get_latest(tagfile):
|
||||||
|
with open(tagfile) as f:
|
||||||
|
versions = json.load(f)
|
||||||
|
print(versions['aliases']['latest'])
|
||||||
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
def get_hash(tagfile, version):
|
||||||
|
with open(tagfile) as f:
|
||||||
|
versions = json.load(f)
|
||||||
|
print(versions['releases'][version])
|
||||||
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
if sys.argv[2] == 'latest':
|
||||||
|
sys.exit(get_latest(sys.argv[1]))
|
||||||
|
if sys.argv[2] == 'hash':
|
||||||
|
sys.exit(get_hash(sys.argv[1], sys.argv[3]))
|
||||||
@@ -6,13 +6,10 @@ set -x
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Get the latest version number from emscripten-releases-tag.json.
|
# Get the latest version number from emscripten-releases-tag.json.
|
||||||
VER=$(grep -oP '(?<=latest\": \")([\d\.]+)(?=\")' \
|
VER=$(scripts/get_release_info.py emscripten-releases-tags.json latest)
|
||||||
emscripten-releases-tags.json \
|
|
||||||
| sed --expression "s/\./\\\./g")
|
|
||||||
# Based on the latest version number, get the commit hash for that version.
|
# Based on the latest version number, get the commit hash for that version.
|
||||||
HASH=$(grep "\"${VER}\"" emscripten-releases-tags.json \
|
HASH=$(scripts/get_release_info.py emscripten-releases-tags.json hash ${VER})
|
||||||
| grep -v latest \
|
|
||||||
| cut -f4 -d\")
|
|
||||||
|
|
||||||
FAILMSG="!!! scripts/update_bazel_workspace.py needs to be run !!!"
|
FAILMSG="!!! scripts/update_bazel_workspace.py needs to be run !!!"
|
||||||
|
|
||||||
|
|||||||
@@ -6,13 +6,10 @@ set -x
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Get the latest version number from emscripten-releases-tag.json.
|
# Get the latest version number from emscripten-releases-tag.json.
|
||||||
VER=$(ggrep -oP '(?<=latest\": \")([\d\.]+)(?=\")' \
|
VER=$(scripts/get_release_info.py emscripten-releases-tags.json latest)
|
||||||
emscripten-releases-tags.json \
|
|
||||||
| sed "s/\./\\\./g")
|
|
||||||
# Based on the latest version number, get the commit hash for that version.
|
# Based on the latest version number, get the commit hash for that version.
|
||||||
HASH=$(grep "\"${VER}\"" emscripten-releases-tags.json \
|
HASH=$(scripts/get_release_info.py emscripten-releases-tags.json hash ${VER})
|
||||||
| grep -v latest \
|
|
||||||
| cut -f4 -d\")
|
|
||||||
|
|
||||||
FAILMSG="!!! scripts/update_bazel_workspace.py needs to be run !!!"
|
FAILMSG="!!! scripts/update_bazel_workspace.py needs to be run !!!"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user