Skip to content

Commit e299047

Browse files
authored
Support macOS ARM in CI (#119)
Fixes #117
1 parent bcb9836 commit e299047

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

Diff for: .github/workflows/ci.yml

+15-3
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,27 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
python: ["3.8", "3.12"]
16-
os: [ubuntu-latest, macos-latest, windows-latest]
17-
runs-on: ${{ matrix.os }}
16+
os: [ubuntu-latest, macos-intel, macos-arm, windows-latest]
17+
include:
18+
- os: macos-intel
19+
runsOn: macos-12
20+
- os: macos-arm
21+
runsOn: macos-14
22+
# macOS ARM 3.8 does not have an available Python build at
23+
# https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json.
24+
# See https://github.com/actions/setup-python/issues/808 and
25+
# https://github.com/actions/python-versions/pull/259.
26+
exclude:
27+
- os: macos-arm
28+
python: "3.8"
29+
runs-on: ${{ matrix.runsOn || matrix.os }}
1830
steps:
1931
- name: Print build information
2032
run: "echo head_ref: ${{ github.head_ref }}, ref: ${{ github.ref }}, os: ${{ matrix.os }}, python: ${{ matrix.python }}"
2133
- uses: actions/checkout@v2
2234
with:
2335
submodules: recursive
24-
- uses: actions/setup-python@v1
36+
- uses: actions/setup-python@v4
2537
with:
2638
python-version: ${{ matrix.python }}
2739
# Using fixed Poetry version until

0 commit comments

Comments
 (0)