Skip to content

Commit

Permalink
Revert "feat: modernize CPU features (#11351)" (#11369)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 authored Sep 27, 2023
1 parent 5c8b42e commit 998d14d
Showing 1 changed file with 13 additions and 273 deletions.
286 changes: 13 additions & 273 deletions .github/workflows/release-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,55 +23,16 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}

# Needed to avoid potential out-of-memory errors.
- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 10

- name: Fix README symlink
run: |
rm py-polars/README.md
cp README.md py-polars/README.md
- name: Publish wheel
uses: PyO3/maturin-action@v1
env:
RUSTFLAGS: -C target-feature=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+avx2,+fma,+bmi1,+bmi2,+lzcnt

with:
command: publish
args: -m py-polars/Cargo.toml --skip-existing -o wheels -u ritchie46
maturin-version: ${{ env.MATURIN_VERSION }}
rust-toolchain: ${{ env.RUST_TOOLCHAIN }}

manylinux-x64_64-lts-cpu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}

# Needed to avoid potential out-of-memory errors.
- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 10

- name: Fix README symlink
run: |
rm py-polars/README.md
cp README.md py-polars/README.md
- name: Prepare lts-cpu
run: sed -i 's/name = "polars"/name = "polars-lts-cpu"/' py-polars/pyproject.toml

- name: Publish wheel
uses: PyO3/maturin-action@v1
env:
RUSTFLAGS: -C target-feature=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt --cfg use_mimalloc
RUSTFLAGS: -C target-feature=+fxsr,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+fma
with:
command: publish
args: -m py-polars/Cargo.toml --skip-existing -o wheels -u ritchie46
Expand All @@ -87,7 +48,7 @@ jobs:
with:
python-version: ${{ env.PYTHON_VERSION }}

# Needed to avoid potential out-of-memory errors.
# Needed to avoid out-of-memory error
- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
Expand All @@ -109,121 +70,13 @@ jobs:
maturin-version: ${{ env.MATURIN_VERSION }}
rust-toolchain: ${{ env.RUST_TOOLCHAIN }}

win-macos-x64_64:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest]

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}

# Needed to avoid potential out-of-memory errors.
- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 10

- name: Fix README symlink
run: |
rm py-polars/README.md
cp README.md py-polars/README.md
- name: Publish wheel
uses: PyO3/maturin-action@v1
env:
RUSTFLAGS: -C target-feature=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+avx2,+fma,+bmi1,+bmi2,+lzcnt

with:
command: publish
args: -m py-polars/Cargo.toml --skip-existing --no-sdist -o wheels -i python -u ritchie46
maturin-version: ${{ env.MATURIN_VERSION }}
rust-toolchain: ${{ env.RUST_TOOLCHAIN }}

win-macos-x64_64-lts-cpu:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest]

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}

# Needed to avoid potential out-of-memory errors.
- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 10

- name: Fix README symlink
run: |
rm py-polars/README.md
cp README.md py-polars/README.md
- name: Prepare lts-cpu
run: sed -i 's/name = "polars"/name = "polars-lts-cpu"/' py-polars/pyproject.toml

- name: Publish wheel
uses: PyO3/maturin-action@v1
env:
RUSTFLAGS: -C target-feature=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt

with:
command: publish
args: -m py-polars/Cargo.toml --skip-existing --no-sdist -o wheels -i python -u ritchie46
maturin-version: ${{ env.MATURIN_VERSION }}
rust-toolchain: ${{ env.RUST_TOOLCHAIN }}

macos-aarch64:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}

# Needed to avoid potential out-of-memory errors.
- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 10

- name: Fix README symlink
run: |
rm py-polars/README.md
cp README.md py-polars/README.md
- name: Set up Rust targets
run: rustup target add aarch64-apple-darwin

- name: Publish wheel
uses: PyO3/maturin-action@v1
with:
command: publish
args: -m py-polars/Cargo.toml --target aarch64-apple-darwin --no-sdist -o wheels -i python -u ritchie46
maturin-version: ${{ env.MATURIN_VERSION }}

manylinux-x64_64-bigidx:
manylinux-bigidx:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}

# Needed to avoid potential out-of-memory errors.
- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 10

- name: Fix README symlink
run: |
Expand All @@ -239,128 +92,40 @@ jobs:
- name: Publish wheel
uses: PyO3/maturin-action@v1
env:
RUSTFLAGS: -C target-feature=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+avx2,+fma,+bmi1,+bmi2,+lzcnt

RUSTFLAGS: -C target-feature=+fxsr,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+fma
with:
command: publish
args: -m py-polars/Cargo.toml --skip-existing -o wheels -u ritchie46
maturin-version: ${{ env.MATURIN_VERSION }}
rust-toolchain: ${{ env.RUST_TOOLCHAIN }}

manylinux-x64_64-lts-cpu-bigidx:
manylinux-x64_64-lts-cpu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}

# Needed to avoid potential out-of-memory errors.
- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 10

- name: Fix README symlink
run: |
rm py-polars/README.md
cp README.md py-polars/README.md
- name: Prepare lts-cpu-bigidx
run: |
sed -i 's/name = "polars"/name = "polars-lts-cpu-u64-idx"/' py-polars/pyproject.toml
# A brittle hack to insert the 'bigidx' feature
sed -i 's/"dynamic_group_by",/"dynamic_group_by",\n"bigidx",/' py-polars/Cargo.toml
- name: Prepare lts-cpu
run: sed -i 's/name = "polars"/name = "polars-lts-cpu"/' py-polars/pyproject.toml

- name: Publish wheel
uses: PyO3/maturin-action@v1
env:
RUSTFLAGS: -C target-feature=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt --cfg use_mimalloc
RUSTFLAGS: -C target-feature=+fxsr,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt --cfg use_mimalloc
with:
command: publish
args: -m py-polars/Cargo.toml --skip-existing -o wheels -u ritchie46
maturin-version: ${{ env.MATURIN_VERSION }}
rust-toolchain: ${{ env.RUST_TOOLCHAIN }}

# Needed for Docker on Apple M1
manylinux-aarch64-bigidx:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}

# Needed to avoid potential out-of-memory errors.
- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 10

- name: Fix README symlink
run: |
rm py-polars/README.md
cp README.md py-polars/README.md
- name: Prepare bigidx
run: |
sed -i 's/name = "polars"/name = "polars-u64-idx"/' py-polars/pyproject.toml
# A brittle hack to insert the 'bigidx' feature
sed -i 's/"dynamic_group_by",/"dynamic_group_by",\n"bigidx",/' py-polars/Cargo.toml
- name: Publish wheel
uses: PyO3/maturin-action@v1
env:
JEMALLOC_SYS_WITH_LG_PAGE: 16
with:
command: publish
args: -m py-polars/Cargo.toml --skip-existing --no-sdist -o wheels -i python -u ritchie46
target: aarch64-unknown-linux-gnu
maturin-version: ${{ env.MATURIN_VERSION }}
rust-toolchain: ${{ env.RUST_TOOLCHAIN }}

win-macos-x64_64-bigidx:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest]

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}

# Needed to avoid potential out-of-memory errors.
- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 10

- name: Fix README symlink
run: |
rm py-polars/README.md
cp README.md py-polars/README.md
- name: Prepare bigidx
run: |
sed -i 's/name = "polars"/name = "polars-u64-idx"/' py-polars/pyproject.toml
# A brittle hack to insert the 'bigidx' feature
sed -i 's/"dynamic_group_by",/"dynamic_group_by",\n"bigidx",/' py-polars/Cargo.toml
- name: Publish wheel
uses: PyO3/maturin-action@v1
env:
RUSTFLAGS: -C target-feature=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+avx2,+fma,+bmi1,+bmi2,+lzcnt

with:
command: publish
args: -m py-polars/Cargo.toml --skip-existing --no-sdist -o wheels -i python -u ritchie46
maturin-version: ${{ env.MATURIN_VERSION }}
rust-toolchain: ${{ env.RUST_TOOLCHAIN }}

win-macos-x64_64-lts-cpu-bigidx:
win-macos:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -372,48 +137,29 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}

# Needed to avoid potential out-of-memory errors.
- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 10

- name: Fix README symlink
run: |
rm py-polars/README.md
cp README.md py-polars/README.md
- name: Prepare lts-cpu-bigidx
run: |
sed -i 's/name = "polars"/name = "polars-lts-cpu-u64-idx"/' py-polars/pyproject.toml
# A brittle hack to insert the 'bigidx' feature
sed -i 's/"dynamic_group_by",/"dynamic_group_by",\n"bigidx",/' py-polars/Cargo.toml
- name: Publish wheel
uses: PyO3/maturin-action@v1
env:
RUSTFLAGS: -C target-feature=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt

RUSTFLAGS: -C target-feature=+fxsr,+sse,+sse2,+sse3,+sse4.1,+sse4.2
with:
command: publish
args: -m py-polars/Cargo.toml --skip-existing --no-sdist -o wheels -i python -u ritchie46
args: -m py-polars/Cargo.toml --no-sdist --skip-existing -o wheels -i python -u ritchie46
maturin-version: ${{ env.MATURIN_VERSION }}
rust-toolchain: ${{ env.RUST_TOOLCHAIN }}

macos-aarch64-bigidx:
macos-aarch64:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}

# Needed to avoid potential out-of-memory errors.
- name: Set Swap Space
uses: pierotofy/set-swap-space@master
with:
swap-size-gb: 10

- name: Fix README symlink
run: |
Expand All @@ -422,16 +168,10 @@ jobs:
- name: Set up Rust targets
run: rustup target add aarch64-apple-darwin

- name: Prepare bigidx
run: |
sed -i 's/name = "polars"/name = "polars-u64-idx"/' py-polars/pyproject.toml
# A brittle hack to insert the 'bigidx' feature
sed -i 's/"dynamic_group_by",/"dynamic_group_by",\n"bigidx",/' py-polars/Cargo.toml

- name: Publish wheel
uses: PyO3/maturin-action@v1
with:
command: publish
args: -m py-polars/Cargo.toml --target aarch64-apple-darwin --no-sdist -o wheels -i python -u ritchie46
maturin-version: ${{ env.MATURIN_VERSION }}
maturin-version: ${{ env.MATURIN_VERSION }}

0 comments on commit 998d14d

Please sign in to comment.