Skip to content

Commit

Permalink
change working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Nov 22, 2023
1 parent 0006db4 commit 0caf8a2
Showing 1 changed file with 48 additions and 2 deletions.
50 changes: 48 additions & 2 deletions .github/workflows/python-core-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
target: ${{ matrix.target }}
manylinux: auto
args: --release --out dist -m python/Cargo.toml
working-directory: python/core
# working-directory: python/core

- name: Install built wheel
if: matrix.target == 'x86_64'
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
target: ${{ matrix.target }}
manylinux: auto
args: --release --out dist -m python/Cargo.toml
working-directory: python/core
# working-directory: python/core

- uses: uraimo/[email protected]
if: matrix.target != 'ppc64'
Expand All @@ -88,6 +88,52 @@ jobs:
name: wheels
path: python/core/dist/*.whl

macos:
runs-on: macos-latest
defaults:
run:
working-directory: python/core
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.8
architecture: x64

- uses: dtolnay/rust-toolchain@stable

- name: Build wheels - x86_64
uses: PyO3/maturin-action@v1
with:
target: x86_64
args: --release --out dist --sdist -m python/Cargo.toml
# working-directory: python/core

- name: Install built wheel - x86_64
run: |
pip install geoarrow-rust-core --no-index --find-links dist --force-reinstall
python -c "import geoarrow.rust.core"
- name: Build wheels - universal2
uses: PyO3/maturin-action@v1
with:
target: universal2-apple-darwin
args: --release --out dist -m python/Cargo.toml
working-directory: python/core

- name: Install built wheel - universal2
run: |
pip install geoarrow-rust-core --no-index --find-links dist --force-reinstall
python -c "import geoarrow.rust.core"
# Have to set path from root
# https://github.com/actions/upload-artifact/issues/232#issuecomment-964235360
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: python/core/dist/*.whl

# build-wheels-mac:
# runs-on: macos-latest
# defaults:
Expand Down

0 comments on commit 0caf8a2

Please sign in to comment.