File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 2020
2121jobs :
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 :
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
You can’t perform that action at this time.
0 commit comments