Skip to content

Commit 98a5f79

Browse files
authored
Merge pull request #125 from allo-media/master
Version 3.0.0
2 parents b2df662 + 40241c0 commit 98a5f79

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1288
-5145
lines changed

.circleci/config.yml

Lines changed: 0 additions & 102 deletions
This file was deleted.

.github/workflows/CI.yml

Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
# This file is autogenerated by maturin v1.7.0
2+
# To update, run
3+
#
4+
# maturin generate-ci github
5+
#
6+
name: CI
7+
8+
on:
9+
push:
10+
branches:
11+
- master
12+
- release
13+
pull_request:
14+
workflow_dispatch:
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
linux:
21+
runs-on: ${{ matrix.platform.runner }}
22+
strategy:
23+
matrix:
24+
platform:
25+
- runner: ubuntu-latest
26+
target: x86_64
27+
- runner: ubuntu-latest
28+
target: x86
29+
- runner: ubuntu-latest
30+
target: aarch64
31+
- runner: ubuntu-latest
32+
target: armv7
33+
- runner: ubuntu-latest
34+
target: s390x
35+
- runner: ubuntu-latest
36+
target: ppc64le
37+
steps:
38+
- uses: actions/checkout@v4
39+
- uses: actions/setup-python@v5
40+
with:
41+
python-version: 3.x
42+
- name: Build wheels
43+
uses: PyO3/maturin-action@v1
44+
with:
45+
target: ${{ matrix.platform.target }}
46+
args: --release --out dist --find-interpreter
47+
sccache: 'true'
48+
manylinux: auto
49+
- name: Test built wheel
50+
if: matrix.target == 'x86_64'
51+
run: |
52+
pip install text2num --no-index --find-links dist --force-reinstall
53+
python -m unittest
54+
- name: Upload wheels
55+
uses: actions/upload-artifact@v4
56+
with:
57+
name: wheels-linux-${{ matrix.platform.target }}
58+
path: dist
59+
60+
musllinux:
61+
runs-on: ${{ matrix.platform.runner }}
62+
strategy:
63+
matrix:
64+
platform:
65+
- runner: ubuntu-latest
66+
target: x86_64
67+
- runner: ubuntu-latest
68+
target: x86
69+
- runner: ubuntu-latest
70+
target: aarch64
71+
- runner: ubuntu-latest
72+
target: armv7
73+
steps:
74+
- uses: actions/checkout@v4
75+
- uses: actions/setup-python@v5
76+
with:
77+
python-version: 3.x
78+
- name: Build wheels
79+
uses: PyO3/maturin-action@v1
80+
with:
81+
target: ${{ matrix.platform.target }}
82+
args: --release --out dist --find-interpreter
83+
sccache: 'true'
84+
manylinux: musllinux_1_2
85+
- name: Upload wheels
86+
uses: actions/upload-artifact@v4
87+
with:
88+
name: wheels-musllinux-${{ matrix.platform.target }}
89+
path: dist
90+
91+
windows:
92+
runs-on: ${{ matrix.platform.runner }}
93+
strategy:
94+
matrix:
95+
platform:
96+
- runner: windows-latest
97+
target: x64
98+
- runner: windows-latest
99+
target: x86
100+
steps:
101+
- uses: actions/checkout@v4
102+
- uses: actions/setup-python@v5
103+
with:
104+
python-version: 3.x
105+
architecture: ${{ matrix.platform.target }}
106+
- name: Build wheels
107+
uses: PyO3/maturin-action@v1
108+
with:
109+
target: ${{ matrix.platform.target }}
110+
args: --release --out dist --find-interpreter
111+
sccache: 'true'
112+
- name: Test built wheel
113+
run: |
114+
pip install text2num --no-index --find-links dist --force-reinstall
115+
python -m unittest
116+
- name: Upload wheels
117+
uses: actions/upload-artifact@v4
118+
with:
119+
name: wheels-windows-${{ matrix.platform.target }}
120+
path: dist
121+
122+
macos:
123+
runs-on: ${{ matrix.platform.runner }}
124+
strategy:
125+
matrix:
126+
platform:
127+
- runner: macos-14
128+
target: aarch64
129+
steps:
130+
- uses: actions/checkout@v4
131+
- uses: actions/setup-python@v5
132+
with:
133+
python-version: 3.x
134+
- name: Build wheels
135+
uses: PyO3/maturin-action@v1
136+
with:
137+
target: ${{ matrix.platform.target }}
138+
args: --release --out dist --find-interpreter
139+
sccache: 'true'
140+
- name: Test built wheel
141+
run: |
142+
pip install text2num --no-index --find-links dist --force-reinstall
143+
python -m unittest
144+
- name: Upload wheels
145+
uses: actions/upload-artifact@v4
146+
with:
147+
name: wheels-macos-${{ matrix.platform.target }}
148+
path: dist
149+
150+
sdist:
151+
runs-on: ubuntu-latest
152+
steps:
153+
- uses: actions/checkout@v4
154+
- name: Build sdist
155+
uses: PyO3/maturin-action@v1
156+
with:
157+
command: sdist
158+
args: --out dist
159+
- name: Upload sdist
160+
uses: actions/upload-artifact@v4
161+
with:
162+
name: wheels-sdist
163+
path: dist
164+
165+
release:
166+
name: Release
167+
runs-on: ubuntu-latest
168+
if: "github.ref =='refs/heads/release'"
169+
needs: [linux, musllinux, windows, macos, sdist]
170+
steps:
171+
- uses: actions/download-artifact@v4
172+
- name: Publish to PyPI
173+
uses: PyO3/maturin-action@v1
174+
env:
175+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
176+
with:
177+
command: upload
178+
args: --non-interactive --skip-existing wheels-*/*

0 commit comments

Comments
 (0)