-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa68126
commit 3b25ed1
Showing
1 changed file
with
76 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,87 +153,91 @@ jobs: | |
name: wheels | ||
path: dist/*.whl | ||
|
||
musllinux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
target: | ||
- x86_64-unknown-linux-musl | ||
- i686-unknown-linux-musl | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
architecture: x64 | ||
# NOTE: musllinux builds are commented out because importing them failed with: | ||
# ImportError: Error loading shared library libgcc_s-60abea67.so.1: No such file or directory | ||
|
||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.target }} | ||
manylinux: musllinux_1_2 | ||
args: --release --out dist -m python/core/Cargo.toml | ||
# musllinux: | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# matrix: | ||
# target: | ||
# - x86_64-unknown-linux-musl | ||
# - i686-unknown-linux-musl | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: actions/setup-python@v4 | ||
# with: | ||
# python-version: 3.8 | ||
# architecture: x64 | ||
|
||
- name: Install built wheel | ||
if: matrix.target == 'x86_64-unknown-linux-musl' | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: alpine:latest | ||
options: -v ${{ github.workspace }}:/io -w /io | ||
run: | | ||
apk add py3-pip | ||
pip3 install -U pip | ||
pip3 install geoarrow-rust-core --no-index --find-links /io/dist/ --force-reinstall | ||
python3 -c "import geoarrow.rust.core" | ||
# - name: Build wheels | ||
# uses: PyO3/maturin-action@v1 | ||
# with: | ||
# target: ${{ matrix.target }} | ||
# manylinux: musllinux_1_2 | ||
# args: --release --out dist -m python/core/Cargo.toml | ||
|
||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: dist | ||
# - name: Install built wheel | ||
# if: matrix.target == 'x86_64-unknown-linux-musl' | ||
# uses: addnab/docker-run-action@v3 | ||
# with: | ||
# image: alpine:latest | ||
# options: -v ${{ github.workspace }}:/io -w /io | ||
# run: | | ||
# apk add py3-pip | ||
# pip3 install -U pip | ||
# pip3 install geoarrow-rust-core --no-index --find-links /io/dist/ --force-reinstall | ||
# python3 -c "import geoarrow.rust.core" | ||
|
||
# - name: Upload wheels | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: wheels | ||
# path: dist | ||
|
||
musllinux-cross: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
platform: | ||
- target: aarch64-unknown-linux-musl | ||
arch: aarch64 | ||
- target: armv7-unknown-linux-musleabihf | ||
arch: armv7 | ||
# musllinux-cross: | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# matrix: | ||
# platform: | ||
# - target: aarch64-unknown-linux-musl | ||
# arch: aarch64 | ||
# - target: armv7-unknown-linux-musleabihf | ||
# arch: armv7 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
# - uses: actions/setup-python@v4 | ||
# with: | ||
# python-version: 3.8 | ||
|
||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.platform.target }} | ||
manylinux: musllinux_1_2 | ||
args: --release --out dist -m python/core/Cargo.toml | ||
# - name: Build wheels | ||
# uses: PyO3/maturin-action@v1 | ||
# with: | ||
# target: ${{ matrix.platform.target }} | ||
# manylinux: musllinux_1_2 | ||
# args: --release --out dist -m python/core/Cargo.toml | ||
|
||
- uses: uraimo/[email protected] | ||
name: Install built wheel | ||
with: | ||
arch: ${{ matrix.platform.arch }} | ||
distro: alpine_latest | ||
githubToken: ${{ github.token }} | ||
install: | | ||
apk add py3-pip | ||
pip3 install -U pip | ||
run: | | ||
pip3 install geoarrow-rust-core --no-index --find-links dist/ --force-reinstall | ||
python3 -c "import geoarrow.rust.core" | ||
# - uses: uraimo/[email protected] | ||
# name: Install built wheel | ||
# with: | ||
# arch: ${{ matrix.platform.arch }} | ||
# distro: alpine_latest | ||
# githubToken: ${{ github.token }} | ||
# install: | | ||
# apk add py3-pip | ||
# pip3 install -U pip | ||
# run: | | ||
# pip3 install geoarrow-rust-core --no-index --find-links dist/ --force-reinstall | ||
# python3 -c "import geoarrow.rust.core" | ||
|
||
# - name: Upload wheels | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: wheels | ||
# path: dist | ||
|
||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: dist | ||
|
||
# build_sdist: | ||
# name: Build source distribution | ||
|