Skip to content

Commit 7933e19

Browse files
committed
Test on Apple Silicon ARM64
1 parent a50d836 commit 7933e19

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
os: [ubuntu-22.04, macos-15-intel, windows-latest]
25+
os: [ubuntu-22.04, macos-latest, windows-latest]
2626
python: ["3.10", "3.11", "3.12", "3.13"]
27+
include:
28+
- os: macos-15-intel
29+
python: "3.13"
2730

2831
steps:
2932
- name: Checkout the repository
@@ -74,7 +77,13 @@ jobs:
7477
if: runner.os == 'Linux' || runner.os == 'macOS'
7578
with:
7679
path: ${{ github.workspace }}/third_party
77-
key: ${{ runner.os }}-dependencies-cairo-${{ hashFiles('.github/scripts/ci_build_cairo.py') }}
80+
key: ${{ runner.os }}-${{ runner.arch }}-dependencies-cairo-${{ hashFiles('.github/scripts/ci_build_cairo.py') }}
81+
82+
- if: runner.os == 'macOS' && runner.arch == 'ARM64'
83+
run: |
84+
echo "PKG_CONFIG_PATH=$HOMEBREW_PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV
85+
echo "CFLAGS=-I$HOMEBREW_PREFIX/include $CFLAGS" >> $GITHUB_ENV
86+
echo "LDFLAGS=-L$HOMEBREW_PREFIX/lib $LDFLAGS" >> $GITHUB_ENV
7887
7988
- name: Build and install Cairo (Linux and macOS)
8089
if: (runner.os == 'Linux' || runner.os == 'macOS') && steps.cache-cairo.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)