Skip to content

Commit

Permalink
CI: Fix macOS build
Browse files Browse the repository at this point in the history
Constraints:

- `macos-latest` is now ARM64.
- Python 3.11 is the first macOS ARM release available in the action.

So, we use macos-13 for older versions and stop unconditionally setting
the architecture to x86, so that `macos-latest` uses ARM64 builds.
  • Loading branch information
danieldk committed Apr 25, 2024
1 parent ba6bf82 commit 5c0e3da
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:
- "*.md"

env:
MODULE_NAME: 'spacy_transformers'
RUN_MYPY: 'true'
MODULE_NAME: "spacy_transformers"
RUN_MYPY: "true"

jobs:
tests:
Expand All @@ -21,16 +21,18 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python_version: ["3.11"]
python_version: ["3.12"]
include:
- os: macos-latest
- os: macos-13
python_version: "3.7"
- os: windows-latest
python_version: "3.8"
- os: ubuntu-latest
python_version: "3.9"
- os: macos-latest
- os: macos-13
python_version: "3.10"
- os: windows-latest
python_version: "3.11"

runs-on: ${{ matrix.os }}

Expand All @@ -42,7 +44,6 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
architecture: x64

- name: Install oldest supported torch for python 3.6
if: matrix.python_version == '3.6'
Expand Down

0 comments on commit 5c0e3da

Please sign in to comment.