Skip to content

Commit

Permalink
Merge pull request #22 from jguhlin/pymodule_google_colab_compile
Browse files Browse the repository at this point in the history
Create create-python-release.yaml
  • Loading branch information
jguhlin authored Jan 22, 2023
2 parents b9b39fa + e5131d1 commit 612615e
Showing 1 changed file with 84 additions and 0 deletions.
84 changes: 84 additions & 0 deletions .github/workflows/create-python-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Taken from Polar-rs github action

name: Create Python release

on:
push:
tags:
- py-*

defaults:
run:
shell: bash

jobs:
manylinux-x64_64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.7'

- name: Publish wheel
uses: messense/maturin-action@v1
env:
MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }}
RUSTFLAGS: -C target-feature=+fxsr,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+fma
with:
rust-toolchain: nightly-2023-01-19
maturin-version: '0.14.10'
command: publish
args: -m minimappers2/Cargo.toml --skip-existing -o wheels -u jguhlin

# Needed for Docker on Apple M1
manylinux-aarch64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.7'

- name: Publish wheel
uses: messense/maturin-action@v1
env:
MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }}
with:
rust-toolchain: nightly-2023-01-19
target: aarch64-unknown-linux-gnu
maturin-version: '0.14.10'
command: publish
args: -m minimappers2/Cargo.toml --skip-existing -o wheels -u jguhlin

# uncomment to build a universal2 wheel
# we don't run it because it is twice as big and not needed because we build for both architectures separately
# macos-aarch64-universal:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: '3.7'

# - name: Fix README symlink
# run: |
# rm py-polars/README.md
# cp README.md py-polars/README.md

# - name: Set up Rust
# uses: dtolnay/rust-toolchain@master
# with:
# toolchain: nightly-2023-01-19

# - name: Set up Rust targets
# run: rustup target add aarch64-apple-darwin

# - name: Publish wheel
# uses: messense/maturin-action@v1
# env:
# MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }}
# with:
# maturin-version: '0.14.10'
# command: publish
# args: -m py-polars/Cargo.toml --no-sdist --universal2 -o wheels -i python -u ritchie46

0 comments on commit 612615e

Please sign in to comment.