Skip to content

Commit 612615e

Browse files
authored
Merge pull request #22 from jguhlin/pymodule_google_colab_compile
Create create-python-release.yaml
2 parents b9b39fa + e5131d1 commit 612615e

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# Taken from Polar-rs github action
2+
3+
name: Create Python release
4+
5+
on:
6+
push:
7+
tags:
8+
- py-*
9+
10+
defaults:
11+
run:
12+
shell: bash
13+
14+
jobs:
15+
manylinux-x64_64:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
- uses: actions/setup-python@v4
20+
with:
21+
python-version: '3.7'
22+
23+
- name: Publish wheel
24+
uses: messense/maturin-action@v1
25+
env:
26+
MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }}
27+
RUSTFLAGS: -C target-feature=+fxsr,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+fma
28+
with:
29+
rust-toolchain: nightly-2023-01-19
30+
maturin-version: '0.14.10'
31+
command: publish
32+
args: -m minimappers2/Cargo.toml --skip-existing -o wheels -u jguhlin
33+
34+
# Needed for Docker on Apple M1
35+
manylinux-aarch64:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v3
39+
- uses: actions/setup-python@v4
40+
with:
41+
python-version: '3.7'
42+
43+
- name: Publish wheel
44+
uses: messense/maturin-action@v1
45+
env:
46+
MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }}
47+
with:
48+
rust-toolchain: nightly-2023-01-19
49+
target: aarch64-unknown-linux-gnu
50+
maturin-version: '0.14.10'
51+
command: publish
52+
args: -m minimappers2/Cargo.toml --skip-existing -o wheels -u jguhlin
53+
54+
# uncomment to build a universal2 wheel
55+
# we don't run it because it is twice as big and not needed because we build for both architectures separately
56+
# macos-aarch64-universal:
57+
# runs-on: macos-latest
58+
# steps:
59+
# - uses: actions/checkout@v3
60+
# - uses: actions/setup-python@v4
61+
# with:
62+
# python-version: '3.7'
63+
64+
# - name: Fix README symlink
65+
# run: |
66+
# rm py-polars/README.md
67+
# cp README.md py-polars/README.md
68+
69+
# - name: Set up Rust
70+
# uses: dtolnay/rust-toolchain@master
71+
# with:
72+
# toolchain: nightly-2023-01-19
73+
74+
# - name: Set up Rust targets
75+
# run: rustup target add aarch64-apple-darwin
76+
77+
# - name: Publish wheel
78+
# uses: messense/maturin-action@v1
79+
# env:
80+
# MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }}
81+
# with:
82+
# maturin-version: '0.14.10'
83+
# command: publish
84+
# args: -m py-polars/Cargo.toml --no-sdist --universal2 -o wheels -i python -u ritchie46

0 commit comments

Comments
 (0)