Skip to content

Remove Intel mac CircleCI configuration #1409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 4 additions & 22 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@ executors:
ubuntu:
docker:
- 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:
environment:
EMSDK_NOTTY: "1"
Expand Down Expand Up @@ -94,11 +85,6 @@ jobs:
name: Install debian packages
command: sudo apt-get update -q && sudo apt-get install -q cmake build-essential openjdk-8-jre-headless
- run: test/test.sh
test-mac:
executor: mac
steps:
- setup-macos
- test-macos
test-mac-arm64:
executor: mac_arm64
steps:
Expand Down Expand Up @@ -257,11 +243,10 @@ jobs:
apt-get install -q -y bazel
- run: test/test_bazel.sh

test-bazel-mac:
executor: mac
test-bazel-mac-arm64:
executor: mac_arm64
steps:
- checkout
- run: brew install grep
- run:
name: install bazelisk
command: |
Expand Down Expand Up @@ -301,9 +286,6 @@ workflows:
test-linux-arm64:
jobs:
- test-linux-arm64
test-mac:
jobs:
- test-mac
test-mac-arm64:
jobs:
- test-mac-arm64
Expand All @@ -328,9 +310,9 @@ workflows:
test-bazel-linux:
jobs:
- test-bazel-linux
test-bazel-mac:
test-bazel-mac-arm64:
jobs:
- test-bazel-mac
- test-bazel-mac-arm64
test-bazel-windows:
jobs:
- test-bazel-windows
25 changes: 25 additions & 0 deletions scripts/get_release_info.py
Original file line number Diff line number Diff line change
@@ -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]))
9 changes: 3 additions & 6 deletions test/test_bazel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ set -x
set -e

# Get the latest version number from emscripten-releases-tag.json.
VER=$(grep -oP '(?<=latest\": \")([\d\.]+)(?=\")' \
emscripten-releases-tags.json \
| sed --expression "s/\./\\\./g")
VER=$(scripts/get_release_info.py emscripten-releases-tags.json latest)

# Based on the latest version number, get the commit hash for that version.
HASH=$(grep "\"${VER}\"" emscripten-releases-tags.json \
| grep -v latest \
| cut -f4 -d\")
HASH=$(scripts/get_release_info.py emscripten-releases-tags.json hash ${VER})

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

Expand Down
9 changes: 3 additions & 6 deletions test/test_bazel_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ set -x
set -e

# Get the latest version number from emscripten-releases-tag.json.
VER=$(ggrep -oP '(?<=latest\": \")([\d\.]+)(?=\")' \
emscripten-releases-tags.json \
| sed "s/\./\\\./g")
VER=$(scripts/get_release_info.py emscripten-releases-tags.json latest)

# Based on the latest version number, get the commit hash for that version.
HASH=$(grep "\"${VER}\"" emscripten-releases-tags.json \
| grep -v latest \
| cut -f4 -d\")
HASH=$(scripts/get_release_info.py emscripten-releases-tags.json hash ${VER})

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

Expand Down