Skip to content

Commit

Permalink
comment out musllinux
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Nov 22, 2023
1 parent fa68126 commit 3b25ed1
Showing 1 changed file with 76 additions and 72 deletions.
148 changes: 76 additions & 72 deletions .github/workflows/python-core-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b25ed1

Please sign in to comment.