forked from pola-rs/polars
-
Notifications
You must be signed in to change notification settings - Fork 0
209 lines (179 loc) · 6.08 KB
/
create-python-release.yaml
File metadata and controls
209 lines (179 loc) · 6.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
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: Fix README symlink
run: |
rm py-polars/README.md
cp README.md py-polars/README.md
- 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-2022-12-20
maturin-version: '0.13.5'
command: publish
args: -m py-polars/Cargo.toml --skip-existing -o wheels -u ritchie46
# 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: Fix README symlink
run: |
rm py-polars/README.md
cp README.md py-polars/README.md
- name: Publish wheel
uses: messense/maturin-action@v1
env:
MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }}
JEMALLOC_SYS_WITH_LG_PAGE: 16
with:
rust-toolchain: nightly-2022-12-20
target: aarch64-unknown-linux-gnu
maturin-version: '0.13.5'
command: publish
args: -m py-polars/Cargo.toml --skip-existing --no-sdist -o wheels -i python -u ritchie46
manylinux-bigidx:
runs-on: ubuntu-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: 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_groupby",/"dynamic_groupby",\n"bigidx",/' py-polars/Cargo.toml
- 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-2022-12-20
maturin-version: '0.13.5'
command: publish
args: -m py-polars/Cargo.toml --skip-existing -o wheels -u ritchie46
manylinux-x64_64-lts-cpu:
runs-on: ubuntu-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: Prepare lts-cpu
run: sed -i 's/name = "polars"/name = "polars-lts-cpu"/' py-polars/pyproject.toml
- 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 --cfg use_mimalloc
with:
rust-toolchain: nightly-2022-12-20
maturin-version: '0.13.5'
command: publish
args: -m py-polars/Cargo.toml --skip-existing -o wheels -u ritchie46
win-macos:
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: '3.7'
- name: Fix README symlink
run: |
rm py-polars/README.md
cp README.md py-polars/README.md
- name: Publish wheel
uses: messense/maturin-action@v1
env:
MATURIN_PASSWORD: ${{ secrets.PYPI_PASS }}
RUSTFLAGS: -C target-feature=+fxsr,+sse,+sse2,+sse3,+sse4.1,+sse4.2
with:
rust-toolchain: nightly-2022-12-20
maturin-version: '0.13.5'
command: publish
args: -m py-polars/Cargo.toml --no-sdist --skip-existing -o wheels -i python -u ritchie46
macos-aarch64:
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-2022-12-20
- 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.13.5'
command: publish
args: -m py-polars/Cargo.toml --target aarch64-apple-darwin --no-sdist -o wheels -i python -u ritchie46
# 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-2022-12-20
# - 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.13.5'
# command: publish
# args: -m py-polars/Cargo.toml --no-sdist --universal2 -o wheels -i python -u ritchie46