Bump version #44
Workflow file for this run
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
# Adapted from https://github.com/pola-rs/polars/blob/main/.github/workflows/release-python.yml | |
# With license found in chrontext/licensing/POLARS_LICENSE | |
name: Release Python | |
on: | |
push: | |
tags: | |
- 'py-v[0-9]+.[0-9]+.[0-9]+' | |
permissions: | |
contents: write | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_TOOLCHAIN: nightly-2024-01-20 | |
MATURIN_VERSION: '1.2.3' | |
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | |
jobs: | |
manylinux-x64_64: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
environment: release | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ '3.8', '3.9', '3.10', '3.11' ] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Fix README symlink | |
run: | | |
rm py_chrontext/README.md | |
cp README.md py_chrontext/README.md | |
cp -r doc py_chrontext/doc | |
- name: Publish wheel | |
uses: PyO3/maturin-action@v1 | |
env: | |
RUSTFLAGS: -C target-feature=+fxsr,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+fma | |
with: | |
command: publish | |
args: -m py_chrontext/Cargo.toml --skip-existing -o wheels -i python${{ matrix.python-version }} -u magbak | |
container: quay.io/pypa/manylinux_2_28_x86_64:latest | |
before-script-linux: yum -y install perl-IPC-Cmd clang | |
maturin-version: ${{ env.MATURIN_VERSION }} | |
rust-toolchain: ${{ env.RUST_TOOLCHAIN }} | |
win: | |
runs-on: windows-latest | |
timeout-minutes: 60 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ '3.8', '3.9', '3.10', '3.11' ] | |
environment: release | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Fix README symlink | |
run: | | |
rm py_chrontext/README.md | |
cp README.md py_chrontext/README.md | |
cp -r doc py_chrontext/doc | |
- name: Publish wheel | |
uses: PyO3/maturin-action@v1 | |
env: | |
RUSTFLAGS: -C target-feature=+fxsr,+sse,+sse2,+sse3,+sse4.1,+sse4.2 | |
with: | |
command: publish | |
args: -m py_chrontext/Cargo.toml --no-sdist --skip-existing -o wheels -i python${{ matrix.PYTHON_VERSION }} -u magbak | |
maturin-version: ${{ env.MATURIN_VERSION }} | |
rust-toolchain: ${{ env.RUST_TOOLCHAIN }} | |
macos: | |
runs-on: macos-latest | |
timeout-minutes: 60 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ '3.8', '3.9', '3.10', '3.11' ] | |
environment: release | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Fix README symlink | |
run: | | |
rm py_chrontext/README.md | |
cp README.md py_chrontext/README.md | |
cp -r doc py_chrontext/doc | |
- name: Publish wheel | |
uses: PyO3/maturin-action@v1 | |
env: | |
RUSTFLAGS: -C target-feature=+fxsr,+sse,+sse2,+sse3,+sse4.1,+sse4.2 | |
MACOSX_DEPLOYMENT_TARGET: 12.6 | |
with: | |
command: publish | |
args: -m py_chrontext/Cargo.toml --no-sdist --skip-existing -o wheels -i python${{ matrix.PYTHON_VERSION }} -u magbak | |
maturin-version: ${{ env.MATURIN_VERSION }} | |
rust-toolchain: ${{ env.RUST_TOOLCHAIN }} | |
macos-aarch64: | |
runs-on: macos-latest | |
timeout-minutes: 60 | |
environment: release | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ '3.8', '3.9', '3.10', '3.11' ] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Fix README symlink | |
run: | | |
rm py_chrontext/README.md | |
cp README.md py_chrontext/README.md | |
cp -r doc py_chrontext/doc | |
- 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_chrontext/Cargo.toml --target aarch64-apple-darwin --no-sdist -o wheels -i python${{ matrix.python-version }} -u magbak | |
maturin-version: ${{ env.MATURIN_VERSION }} | |
rust-toolchain: ${{ env.RUST_TOOLCHAIN }} |