Skip to content

Commit 3110500

Browse files
committed
added README and figure files from Cython ppsim repo; bumped version in preparation to build wheels for all major platforms on next release
1 parent 8e2794d commit 3110500

26 files changed

Lines changed: 5034 additions & 99 deletions

.github/workflows/build_and_publish.yml

Lines changed: 92 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -9,71 +9,71 @@ permissions:
99
contents: read
1010

1111
jobs:
12-
# linux:
13-
# runs-on: ${{ matrix.platform.runner }}
14-
# strategy:
15-
# matrix:
16-
# platform:
17-
# - runner: ubuntu-latest
18-
# target: x86_64
19-
# - runner: ubuntu-latest
20-
# target: x86
21-
# - runner: ubuntu-latest
22-
# target: aarch64
23-
# - runner: ubuntu-latest
24-
# target: armv7
25-
# - runner: ubuntu-latest
26-
# target: s390x
27-
# - runner: ubuntu-latest
28-
# target: ppc64le
29-
# steps:
30-
# - uses: actions/checkout@v4
31-
# - uses: actions/setup-python@v5
32-
# with:
33-
# python-version: 3.x
34-
# - name: Build wheels
35-
# uses: PyO3/maturin-action@v1
36-
# with:
37-
# target: ${{ matrix.platform.target }}
38-
# args: --release --out dist --find-interpreter
39-
# sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
40-
# manylinux: auto
41-
# - name: Upload wheels
42-
# uses: actions/upload-artifact@v4
43-
# with:
44-
# name: wheels-linux-${{ matrix.platform.target }}
45-
# path: dist
12+
linux:
13+
runs-on: ${{ matrix.platform.runner }}
14+
strategy:
15+
matrix:
16+
platform:
17+
- runner: ubuntu-latest
18+
target: x86_64
19+
- runner: ubuntu-latest
20+
target: x86
21+
- runner: ubuntu-latest
22+
target: aarch64
23+
- runner: ubuntu-latest
24+
target: armv7
25+
- runner: ubuntu-latest
26+
target: s390x
27+
- runner: ubuntu-latest
28+
target: ppc64le
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: actions/setup-python@v5
32+
with:
33+
python-version: 3.x
34+
- name: Build wheels
35+
uses: PyO3/maturin-action@v1
36+
with:
37+
target: ${{ matrix.platform.target }}
38+
args: --release --out dist --find-interpreter
39+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
40+
manylinux: auto
41+
- name: Upload wheels
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: wheels-linux-${{ matrix.platform.target }}
45+
path: dist
4646

47-
# musllinux:
48-
# runs-on: ${{ matrix.platform.runner }}
49-
# strategy:
50-
# matrix:
51-
# platform:
52-
# - runner: ubuntu-latest
53-
# target: x86_64
54-
# - runner: ubuntu-latest
55-
# target: x86
56-
# - runner: ubuntu-latest
57-
# target: aarch64
58-
# - runner: ubuntu-latest
59-
# target: armv7
60-
# steps:
61-
# - uses: actions/checkout@v4
62-
# - uses: actions/setup-python@v5
63-
# with:
64-
# python-version: 3.x
65-
# - name: Build wheels
66-
# uses: PyO3/maturin-action@v1
67-
# with:
68-
# target: ${{ matrix.platform.target }}
69-
# args: --release --out dist --find-interpreter
70-
# sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
71-
# manylinux: musllinux_1_2
72-
# - name: Upload wheels
73-
# uses: actions/upload-artifact@v4
74-
# with:
75-
# name: wheels-musllinux-${{ matrix.platform.target }}
76-
# path: dist
47+
musllinux:
48+
runs-on: ${{ matrix.platform.runner }}
49+
strategy:
50+
matrix:
51+
platform:
52+
- runner: ubuntu-latest
53+
target: x86_64
54+
- runner: ubuntu-latest
55+
target: x86
56+
- runner: ubuntu-latest
57+
target: aarch64
58+
- runner: ubuntu-latest
59+
target: armv7
60+
steps:
61+
- uses: actions/checkout@v4
62+
- uses: actions/setup-python@v5
63+
with:
64+
python-version: 3.x
65+
- name: Build wheels
66+
uses: PyO3/maturin-action@v1
67+
with:
68+
target: ${{ matrix.platform.target }}
69+
args: --release --out dist --find-interpreter
70+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
71+
manylinux: musllinux_1_2
72+
- name: Upload wheels
73+
uses: actions/upload-artifact@v4
74+
with:
75+
name: wheels-musllinux-${{ matrix.platform.target }}
76+
path: dist
7777

7878
windows:
7979
runs-on: ${{ matrix.platform.runner }}
@@ -82,8 +82,8 @@ jobs:
8282
platform:
8383
- runner: windows-latest
8484
target: x64
85-
# - runner: windows-latest
86-
# target: x86
85+
- runner: windows-latest
86+
target: x86
8787
steps:
8888
- uses: actions/checkout@v4
8989
- uses: actions/setup-python@v5
@@ -102,31 +102,31 @@ jobs:
102102
name: wheels-windows-${{ matrix.platform.target }}
103103
path: dist
104104

105-
# macos:
106-
# runs-on: ${{ matrix.platform.runner }}
107-
# strategy:
108-
# matrix:
109-
# platform:
110-
# - runner: macos-13
111-
# target: x86_64
112-
# - runner: macos-14
113-
# target: aarch64
114-
# steps:
115-
# - uses: actions/checkout@v4
116-
# - uses: actions/setup-python@v5
117-
# with:
118-
# python-version: 3.x
119-
# - name: Build wheels
120-
# uses: PyO3/maturin-action@v1
121-
# with:
122-
# target: ${{ matrix.platform.target }}
123-
# args: --release --out dist --find-interpreter
124-
# sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
125-
# - name: Upload wheels
126-
# uses: actions/upload-artifact@v4
127-
# with:
128-
# name: wheels-macos-${{ matrix.platform.target }}
129-
# path: dist
105+
macos:
106+
runs-on: ${{ matrix.platform.runner }}
107+
strategy:
108+
matrix:
109+
platform:
110+
- runner: macos-13
111+
target: x86_64
112+
- runner: macos-14
113+
target: aarch64
114+
steps:
115+
- uses: actions/checkout@v4
116+
- uses: actions/setup-python@v5
117+
with:
118+
python-version: 3.x
119+
- name: Build wheels
120+
uses: PyO3/maturin-action@v1
121+
with:
122+
target: ${{ matrix.platform.target }}
123+
args: --release --out dist --find-interpreter
124+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
125+
- name: Upload wheels
126+
uses: actions/upload-artifact@v4
127+
with:
128+
name: wheels-macos-${{ matrix.platform.target }}
129+
path: dist
130130

131131
sdist:
132132
runs-on: ubuntu-latest
@@ -146,9 +146,7 @@ jobs:
146146
release:
147147
name: Release
148148
runs-on: ubuntu-latest
149-
# if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
150-
# needs: [linux, musllinux, windows, macos, sdist]
151-
needs: [windows, sdist]
149+
needs: [linux, musllinux, windows, macos, sdist]
152150
environment: pypi
153151
permissions:
154152
# Use to sign the release artifacts
@@ -164,7 +162,6 @@ jobs:
164162
with:
165163
subject-path: 'wheels-*/*'
166164
- name: Publish to PyPI
167-
# if: ${{ startsWith(github.ref, 'refs/tags/') }}
168165
uses: PyO3/maturin-action@v1
169166
with:
170167
command: upload

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
[package]
22
name = "ppsim"
3-
version = "1.0.0"
3+
# supposedly maturin uses the version from pyproject.toml when publishing to PyPi,
4+
# so it should not matter what this is, but I try to remember to keep it in sync.
5+
version = "1.0.1"
46
edition = "2021"
57

68
[lib]

0 commit comments

Comments
 (0)