Skip to content

Commit 1e04ff7

Browse files
committed
Update pypi release workflow.
1 parent 1641e2e commit 1e04ff7

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

.github/workflows/Release PyPi.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
# This file is autogenerated by maturin v1.9.0
2-
# To update, run
3-
#
4-
# maturin generate-ci github
5-
#
1+
# This file is autogenerated by maturin v1.9.0 and manually patched for 'ring' crate compatibility
62
name: Release PyPi
73

84
on:
95
push:
106
tags:
117
- "v*" # Trigger on tags starting with "v"
8+
workflow_dispatch: # Allows manual triggering
129

1310
permissions:
1411
contents: read
@@ -29,14 +26,20 @@ jobs:
2926
target: armv7
3027
- runner: ubuntu-22.04
3128
target: ppc64le
32-
python-version: ["3.11", "3.12", "3.13"]
29+
# Added 3.14 to the list
30+
python-version: ["3.11", "3.12", "3.13", "3.14"]
3331
steps:
3432
- uses: actions/checkout@v4
3533
- uses: actions/setup-python@v5
3634
with:
3735
python-version: ${{ matrix.python-version }}
3836
- name: Build wheels
3937
uses: PyO3/maturin-action@v1
38+
env:
39+
# Fixes for 'ring' crate assembly on cross-compilation
40+
CFLAGS_aarch64_unknown_linux_gnu: "-march=armv8-a"
41+
CFLAGS_armv7_unknown_linux_gnueabihf: "-march=armv7-a"
42+
CFLAGS_powerpc64le_unknown_linux_gnu: "-mcpu=power8"
4043
with:
4144
target: ${{ matrix.platform.target }}
4245
args: --release --out dist --find-interpreter
@@ -61,14 +64,18 @@ jobs:
6164
target: aarch64
6265
- runner: ubuntu-22.04
6366
target: armv7
64-
python-version: ["3.11", "3.12", "3.13"]
67+
python-version: ["3.11", "3.12", "3.13", "3.14"]
6568
steps:
6669
- uses: actions/checkout@v4
6770
- uses: actions/setup-python@v5
6871
with:
6972
python-version: ${{ matrix.python-version }}
7073
- name: Build wheels
7174
uses: PyO3/maturin-action@v1
75+
env:
76+
# Fixes for 'ring' crate assembly on musl cross-compilation
77+
CFLAGS_aarch64_unknown_linux_musl: "-march=armv8-a"
78+
CFLAGS_armv7_unknown_linux_musleabihf: "-march=armv7-a"
7279
with:
7380
target: ${{ matrix.platform.target }}
7481
args: --release --out dist --find-interpreter
@@ -89,7 +96,7 @@ jobs:
8996
target: x64
9097
- runner: windows-latest
9198
target: x86
92-
python-version: ["3.11", "3.12", "3.13"]
99+
python-version: ["3.11", "3.12", "3.13", "3.14"]
93100
steps:
94101
- uses: actions/checkout@v4
95102
- uses: actions/setup-python@v5
@@ -115,7 +122,9 @@ jobs:
115122
platform:
116123
- runner: macos-14
117124
target: aarch64
118-
python-version: ["3.11", "3.12", "3.13"]
125+
- runner: macos-13
126+
target: x86_64
127+
python-version: ["3.11", "3.12", "3.13", "3.14"]
119128
steps:
120129
- uses: actions/checkout@v4
121130
- uses: actions/setup-python@v5
@@ -154,11 +163,8 @@ jobs:
154163
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
155164
needs: [linux, musllinux, windows, macos, sdist]
156165
permissions:
157-
# Use to sign the release artifacts
158166
id-token: write
159-
# Used to upload release artifacts
160167
contents: write
161-
# Used to generate artifact attestation
162168
attestations: write
163169
steps:
164170
- uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)