Skip to content

Commit 37498d6

Browse files
1.3.3
1 parent 503814d commit 37498d6

File tree

3 files changed

+44
-53
lines changed

3 files changed

+44
-53
lines changed

.github/workflows/CI.yml

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
# CI workflow to build Python wheels for Linux and Windows across multiple Python versions.
2-
# Triggered on tag pushes for releases or manually via workflow_dispatch.
3-
# Builds binary wheels and source distribution, then publishes to PyPI on tagged releases.
4-
1+
# CI workflow to build Python wheels for Linux, Windows, and macOS.
52
name: CI
63

74
on:
85
push:
6+
branches:
7+
- main
98
tags:
109
- '*'
1110
workflow_dispatch:
@@ -25,9 +24,6 @@ jobs:
2524
- uses: actions/setup-python@v5
2625
with:
2726
python-version: ${{ matrix.python-version }}
28-
allow-prereleases: false
29-
- name: Verify Python version
30-
run: python --version
3127
- name: Build wheels
3228
uses: PyO3/maturin-action@v1
3329
with:
@@ -51,10 +47,7 @@ jobs:
5147
- uses: actions/setup-python@v5
5248
with:
5349
python-version: ${{ matrix.python-version }}
54-
allow-prereleases: false
5550
architecture: x64
56-
- name: Verify Python version
57-
run: python --version
5851
- name: Build wheels
5952
uses: PyO3/maturin-action@v1
6053
with:
@@ -66,6 +59,28 @@ jobs:
6659
name: wheels-windows-${{ matrix.target }}-py${{ matrix.python-version }}
6760
path: dist
6861

62+
macos:
63+
runs-on: macos-latest
64+
strategy:
65+
matrix:
66+
python-version: ["3.10", "3.11", "3.12", "3.13"]
67+
target: [x86_64, aarch64]
68+
steps:
69+
- uses: actions/checkout@v4
70+
- uses: actions/setup-python@v5
71+
with:
72+
python-version: ${{ matrix.python-version }}
73+
- name: Build wheels
74+
uses: PyO3/maturin-action@v1
75+
with:
76+
target: ${{ matrix.target }}
77+
args: --release --out dist -i python${{ matrix.python-version }}
78+
- name: Upload wheels
79+
uses: actions/upload-artifact@v4
80+
with:
81+
name: wheels-macos-${{ matrix.target }}-py${{ matrix.python-version }}
82+
path: dist
83+
6984
sdist:
7085
runs-on: ubuntu-latest
7186
steps:
@@ -85,7 +100,7 @@ jobs:
85100
name: Release
86101
runs-on: ubuntu-latest
87102
if: ${{ startsWith(github.ref, 'refs/tags/') }}
88-
needs: [linux, windows, sdist]
103+
needs: [linux, windows, macos, sdist]
89104
permissions:
90105
id-token: write
91106
contents: write

Cargo.lock

Lines changed: 15 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[package]
22
name = "neutraltemplate"
3-
version = "1.3.2"
3+
version = "1.3.3"
44
edition = "2021"
55

66
[lib]
77
name = "neutraltemplate"
88
crate-type = ["cdylib"]
99

1010
[dependencies]
11-
pyo3 = { version = "0.26.0", features = [] }
12-
neutralts = "1.3.2"
11+
pyo3 = { version = "0.28.0", features = [] }
12+
neutralts = "1.3.3"
1313
serde_json = "1.0"
1414

1515
[profile.release]

0 commit comments

Comments
 (0)