Skip to content

Commit

Permalink
add windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Nov 22, 2023
1 parent f895232 commit dfe7378
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions .github/workflows/python-core-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: wheels
path: python/core/dist/*.whl
path: dist/*.whl

linux-cross:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: wheels
path: python/core/dist/*.whl
path: dist/*.whl

macos:
runs-on: macos-latest
Expand Down Expand Up @@ -120,7 +120,39 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: wheels
path: python/core/dist/*.whl
path: dist/*.whl

windows:
runs-on: windows-latest
strategy:
matrix:
target: [x64, x86]
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
python-version: 3.8
architecture: ${{ matrix.target }}

- uses: dtolnay/rust-toolchain@stable

- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist -m python/core/Cargo.toml

- name: Install built wheel
run: |
pip install geoarrow-rust-core --no-index --find-links dist --force-reinstall
python -c "import geoarrow.rust.core"
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist/*.whl

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

0 comments on commit dfe7378

Please sign in to comment.