Skip to content

Commit

Permalink
fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Aug 22, 2022
1 parent fb2a633 commit 8b620d1
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 6 deletions.
49 changes: 44 additions & 5 deletions .github/workflows/create-py-release-manylinux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,33 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: publish x86_64
uses: docker://ghcr.io/pyo3/maturin:latest
- name: Prepare maturin publish
shell: bash
run: |
rm py-polars/README.md
cp README.md py-polars/README.md
cd py-polars
export RUSTFLAGS='-C target-feature=+fxsr,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+fma'
- name: publish x64_64
uses: messense/maturin-action@main
env:
MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }}
with:
entrypoint: /bin/bash
args: .github/deploy_manylinux.sh
rust-toolchain: nightly-2022-08-22
# don't use `2_17` it does not work: https://github.com/pola-rs/polars/runs/6107328960
manylinux: '2_24'
maturin-version: '0.13.0'
command: publish
args: -m py-polars/Cargo.toml --skip-existing --no-sdist -o wheels -i python -u ritchie46

# - uses: actions/checkout@v3
# - name: publish x86_64
# uses: docker://ghcr.io/pyo3/maturin:latest
# env:
# MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }}
# with:
# entrypoint: /bin/bash
# args: .github/deploy_manylinux.sh
# needed for docker on apple m1
- name: publish aarch64
uses: messense/maturin-action@main
Expand All @@ -30,4 +50,23 @@ jobs:
target: aarch64-unknown-linux-gnu
maturin-version: '0.13.0'
command: publish
args: -m py-polars/Cargo.toml --no-sdist -o wheels -i python -u ritchie46
args: -m py-polars/Cargo.toml --skip-existing --no-sdist -o wheels -i python -u ritchie46

- name: Prepare bigidx
shell: bash
run: |
# now compile polars with bigidx feature
sed -i 's/name = "polars"/name = "polars-u64-idx"/' pyproject.toml
# a brittle hack to insert the 'bigidx' feature
sed -i 's/"dynamic_groupby",/"dynamic_groupby",\n"bigidx",/' Cargo.toml
- name: publish x64_64 bigidx
uses: messense/maturin-action@main
env:
MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }}
with:
rust-toolchain: nightly-2022-08-22
# don't use `2_17` it does not work: https://github.com/pola-rs/polars/runs/6107328960
manylinux: '2_24'
maturin-version: '0.13.0'
command: publish
args: -m py-polars/Cargo.toml --skip-existing --no-sdist -o wheels -i python -u ritchie46
2 changes: 1 addition & 1 deletion .github/workflows/create-py-release-windows-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
cp README.md py-polars/README.md
cd py-polars
rustup override set nightly-2022-08-22
export RUSTFLAGS='-C target-feature=+fxsr,+sse,+sse2,+sse3'
export RUSTFLAGS='-C target-feature=+fxsr,+sse,+sse2,+sse3,+sse4.1,+sse4.2'
maturin publish \
--no-sdist \
--skip-existing \
Expand Down

0 comments on commit 8b620d1

Please sign in to comment.