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 5ce252f
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
include:
- os: ubuntu-latest
target: x86_64
- os: macos-latest
target: x86_64
- target: x86_64-unknown-linux-gnu
- target: x86_64-apple-darwin
args: --zig
- target: aarch64-apple-darwin
args: --zig

steps:
- name: checkout
Expand All @@ -32,18 +34,19 @@ jobs:
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist
args: ${{ matrix.args }} --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 5ce252f

Please sign in to comment.