Skip to content

CI: use GitHub hosted runners to build for arm64 macOS #242

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 5 commits into from
Feb 16, 2024
Merged
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
13 changes: 7 additions & 6 deletions .github/workflows/test-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ jobs:
strategy:
fail-fast: false
matrix:
# Use Ubuntu 20.04 / macOS 13 + Python 3.10 to build SpiderMonkey
os: [ 'ubuntu-20.04', 'macos-13', 'm2ci' ]
# Use Ubuntu 20.04 / macOS 13 x86_64 / macOS 14 arm64 + Python 3.10 to build SpiderMonkey
os: [ 'ubuntu-20.04', 'macos-13', 'macos-14' ] # macOS 14 runner exclusively runs on M1 hardwares
# see https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available
python_version: [ '3.10' ]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -43,7 +44,7 @@ jobs:
key: spidermonkey115.7.0-${{ runner.os }}-${{ runner.arch }}
lookup-only: true # skip download
- name: Setup XCode
if: ${{ matrix.os == 'macos-13' && steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
if: ${{ (matrix.os == 'macos-13' || matrix.os == 'macos-14') && steps.cache-spidermonkey.outputs.cache-hit != 'true' }}
# SpiderMonkey 115 ESR requires XCode SDK version at least 13.3
# https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md#installed-sdks
run: sudo xcode-select -switch /Applications/Xcode_14.3.app
Expand Down Expand Up @@ -88,7 +89,7 @@ jobs:
fail-fast: false
matrix:
# The lowest supported version is Ubuntu 20.04 + Python 3.8 or macOS 12 + Python 3.9
os: [ 'ubuntu-20.04', 'macos-12', 'windows-2019', 'm2ci' ]
os: [ 'ubuntu-20.04', 'macos-12', 'windows-2019', 'macos-14' ]
python_version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
exclude:
# macOS 12 comes with Python 3.9 by default, so we drop ci support for Python 3.8 on macOS
Expand All @@ -97,9 +98,9 @@ jobs:
python_version: '3.8'
# actions/setup-python: The version '3.8'/'3.9' with architecture 'arm64' was not found for macOS.
# see https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
- os: 'm2ci'
- os: 'macos-14'
python_version: '3.8'
- os: 'm2ci'
- os: 'macos-14'
python_version: '3.9'
runs-on: ${{ matrix.os }}
steps:
Expand Down