Skip to content

Commit

Permalink
Fix wheel build
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Dec 6, 2024
1 parent 11d8bde commit b48db77
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/python-core-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ jobs:
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
rust-toolchain: nightly
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter --manifest-path python/${{ matrix.module }}/Cargo.toml
args: RUSTFLAGS="-Zinline-mir=no" --release --out dist --find-interpreter --manifest-path python/${{ matrix.module }}/Cargo.toml
sccache: "true"
manylinux: auto
- name: Upload wheels
Expand Down Expand Up @@ -82,7 +83,7 @@ jobs:
# uses: PyO3/maturin-action@v1
# with:
# target: ${{ matrix.platform.target }}
# args: --release --out dist --find-interpreter --manifest-path python/${{ matrix.module }}/Cargo.toml
# args: RUSTFLAGS="-Zinline-mir=no" --release --out dist --find-interpreter --manifest-path python/${{ matrix.module }}/Cargo.toml
# sccache: "true"
# manylinux: musllinux_1_2
# - name: Upload wheels
Expand Down Expand Up @@ -112,8 +113,9 @@ jobs:
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
rust-toolchain: nightly
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter --manifest-path python/${{ matrix.module }}/Cargo.toml
args: RUSTFLAGS="-Zinline-mir=no" --release --out dist --find-interpreter --manifest-path python/${{ matrix.module }}/Cargo.toml
sccache: "true"
- name: Upload wheels
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -142,8 +144,9 @@ jobs:
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
rust-toolchain: nightly
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter --manifest-path python/${{ matrix.module }}/Cargo.toml
args: RUSTFLAGS="-Zinline-mir=no" --release --out dist --find-interpreter --manifest-path python/${{ matrix.module }}/Cargo.toml
sccache: "true"
- name: Upload wheels
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -183,8 +186,9 @@ jobs:
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
rust-toolchain: nightly
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter --no-default-features --manifest-path python/${{ matrix.module }}/Cargo.toml
args: RUSTFLAGS="-Zinline-mir=no" --release --out dist --find-interpreter --no-default-features --manifest-path python/${{ matrix.module }}/Cargo.toml
sccache: "true"
rust-toolchain: nightly
- name: Upload wheels
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/python-io-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ jobs:
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
rust-toolchain: nightly
target: ${{ matrix.target }}
manylinux: manylinux_2_28
args: --release --out dist --find-interpreter -m python/geoarrow-io/Cargo.toml
args: RUSTFLAGS="-Zinline-mir=no" --release --out dist --find-interpreter -m python/geoarrow-io/Cargo.toml
before-script-linux: |
yum update -y
yum install openssl openssl-devel perl-IPC-Cmd -y
Expand Down Expand Up @@ -59,9 +60,10 @@ jobs:
# - name: Build wheels
# uses: PyO3/maturin-action@v1
# with:
# rust-toolchain: nightly
# target: ${{ matrix.target }}
# manylinux: auto
# args: --release --out dist --find-interpreter -m python/geoarrow-io/Cargo.toml
# args: RUSTFLAGS="-Zinline-mir=no" --release --out dist --find-interpreter -m python/geoarrow-io/Cargo.toml

# # This is currently failing with
# # python: command not found
Expand Down Expand Up @@ -112,7 +114,7 @@ jobs:
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter -m python/geoarrow-io/Cargo.toml
args: RUSTFLAGS="-Zinline-mir=no" --release --out dist --find-interpreter -m python/geoarrow-io/Cargo.toml
sccache: "true"

- name: Install built wheel - ${{ matrix.platform.target }}
Expand Down Expand Up @@ -144,8 +146,9 @@ jobs:
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
rust-toolchain: nightly
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter -m python/geoarrow-io/Cargo.toml
args: RUSTFLAGS="-Zinline-mir=no" --release --out dist --find-interpreter -m python/geoarrow-io/Cargo.toml

- name: Install built wheel
run: |
Expand Down Expand Up @@ -178,9 +181,10 @@ jobs:
# - name: Build wheels
# uses: PyO3/maturin-action@v1
# with:
# rust-toolchain: nightly
# target: ${{ matrix.target }}
# manylinux: musllinux_1_2
# args: --release --out dist --find-interpreter -m python/geoarrow-io/Cargo.toml
# args: RUSTFLAGS="-Zinline-mir=no" --release --out dist --find-interpreter -m python/geoarrow-io/Cargo.toml

# - name: Install built wheel
# if: matrix.target == 'x86_64-unknown-linux-musl'
Expand Down Expand Up @@ -220,9 +224,10 @@ jobs:
# - name: Build wheels
# uses: PyO3/maturin-action@v1
# with:
# rust-toolchain: nightly
# target: ${{ matrix.platform.target }}
# manylinux: musllinux_1_2
# args: --release --out dist --find-interpreter -m python/geoarrow-io/Cargo.toml
# args: RUSTFLAGS="-Zinline-mir=no" --release --out dist --find-interpreter -m python/geoarrow-io/Cargo.toml

# - uses: uraimo/[email protected]
# name: Install built wheel
Expand Down

0 comments on commit b48db77

Please sign in to comment.