Skip to content

Commit

Permalink
WIP: cross compile for MacOS targets
Browse files Browse the repository at this point in the history
  • Loading branch information
kylc committed Dec 17, 2023
1 parent 2ad3d87 commit 937f0f7
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64
- os: macos-latest
target: x86_64
os: [ubuntu-latest]
target: [x86_64-unknown-linux-gnu, x86_64-apple-darwin, aarch64-apple-darwin]

steps:
- name: checkout
Expand All @@ -32,18 +29,19 @@ jobs:
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist
args: --zig --release --out dist
manylinux: auto
sccache: true
- name: delocate wheel (macOS)
if: runner.os == 'macOS'
run: |
pip install delocate
delocate-wheel -v dist/*.whl
- name: install built wheel
run: |
pip install optik-py --no-index --find-links dist
python -c "import optik"
# - name: delocate wheel (macOS)
# if: runner.os == 'macOS'
# run: |
# pip install delocate
# delocate-wheel -v dist/*.whl
# - name: install built wheel
# if: ${{ matrix.target }} == 'x86_64-unknown-linux-gnu'
# run: |
# pip install optik-py --no-index --find-links dist
# python -c "import optik"
- name: upload wheels
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 937f0f7

Please sign in to comment.