From 937f0f76ad11d3967b8887f06a32bb56b4603020 Mon Sep 17 00:00:00 2001 From: Kyle Cesare Date: Sun, 17 Dec 2023 12:25:44 -0700 Subject: [PATCH] WIP: cross compile for MacOS targets --- .github/workflows/python.yaml | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index b59614d..076947c 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -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 @@ -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: