Skip to content

Commit 9e98294

Browse files
committed
Add macOS builds to CI
Build and test wheels on both Linux and macOS.
1 parent 7ec99bc commit 9e98294

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/build-wheels.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ on:
99

1010
jobs:
1111
build_wheel:
12-
name: Build wheel on Linux
13-
runs-on: ubuntu-latest
12+
name: Build wheel on ${{ matrix.os }}
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, macos-latest]
1417

1518
steps:
1619
- uses: actions/checkout@v4
@@ -64,13 +67,16 @@ jobs:
6467
6568
- uses: actions/upload-artifact@v4
6669
with:
67-
name: wheel
70+
name: wheel-${{ matrix.os }}
6871
path: dist/*.whl
6972

7073
test_wheel:
71-
name: Test wheel
74+
name: Test wheel on ${{ matrix.os }}
7275
needs: [build_wheel]
73-
runs-on: ubuntu-latest
76+
runs-on: ${{ matrix.os }}
77+
strategy:
78+
matrix:
79+
os: [ubuntu-latest, macos-latest]
7480

7581
steps:
7682
- name: Set up Python 3.8
@@ -80,7 +86,7 @@ jobs:
8086

8187
- uses: actions/download-artifact@v4
8288
with:
83-
name: wheel
89+
name: wheel-${{ matrix.os }}
8490
path: dist
8591

8692
- name: Install wheel

0 commit comments

Comments
 (0)