Skip to content

Commit 652acf0

Browse files
committed
update macos
1 parent 1536158 commit 652acf0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/cross_platform_tests.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ env:
2020

2121
jobs:
2222
build_and_test:
23-
name: Build and test on Ubuntu with Python ${{ matrix.python-version }}
24-
runs-on: ubuntu-latest
23+
name: Build and test on ${{ matrix.os }} with Python ${{ matrix.python-version }}
24+
runs-on: ${{ matrix.os }}
2525
strategy:
2626
fail-fast: false # Continue with other jobs if one fails
2727
matrix:
28+
os: [ubuntu-latest, macos-latest]
2829
python-version: ['3.11']
2930

3031
steps:
@@ -77,7 +78,7 @@ jobs:
7778
- name: Build and install package with maturin
7879
uses: PyO3/maturin-action@v1
7980
with:
80-
target: x86_64
81+
target: ${{ matrix.os == 'macos-latest' && 'universal2-apple-darwin' || 'x86_64' }}
8182
command: develop
8283
args: --release
8384
sccache: 'true'
@@ -89,15 +90,15 @@ jobs:
8990
- name: Build wheel
9091
uses: PyO3/maturin-action@v1
9192
with:
92-
target: x86_64
93+
target: ${{ matrix.os == 'macos-latest' && 'universal2-apple-darwin' || 'x86_64' }}
9394
command: build
9495
args: --release
9596
sccache: 'true'
9697

9798
- name: Upload wheels
9899
uses: actions/upload-artifact@v4
99100
with:
100-
name: wheels-ubuntu-latest-py${{ matrix.python-version }}
101+
name: wheels-${{ matrix.os }}-py${{ matrix.python-version }}
101102
path: target/wheels/
102103

103104
# Create a release job that collects all wheels

0 commit comments

Comments
 (0)