@@ -54,14 +54,21 @@ jobs:
54
54
name : wheels
55
55
path : bindings/python/dist
56
56
57
- linux :
58
- runs-on : ubuntu-latest
57
+ wheels :
58
+ runs-on : " ${{ matrix.os }} "
59
59
strategy :
60
60
matrix :
61
- target : [ x86_64, aarch64, armv7l ]
62
- python-version : [ "3.9", "3.10", "3.11", "3.12" ]
61
+ include :
62
+ - { os: windows-latest }
63
+ - { os: macos-latest, target: "universal2-apple-darwin" }
64
+ - { os: ubuntu-latest, target: "x86_64" }
65
+ - { os: ubuntu-latest, target: "aarch64" }
66
+ - { os: ubuntu-latest, target: "armv7l" }
63
67
steps :
64
68
- uses : actions/checkout@v4
69
+ - uses : actions/setup-python@v4
70
+ with :
71
+ python-version : 3.9
65
72
- name : Setup Rust toolchain
66
73
uses : ./.github/actions/setup-builder
67
74
with :
72
79
manylinux : auto
73
80
working-directory : " bindings/python"
74
81
command : build
75
- args : --release -o dist -i python${{ matrix.python-version }}
82
+ args : --release -o dist
76
83
env :
77
84
# Workaround ring 0.17 build issue
78
85
CFLAGS_aarch64_unknown_linux_gnu : " -D__ARM_ARCH=8"
84
91
85
92
pypi-publish :
86
93
name : Publish Python 🐍 distribution 📦 to Pypi
87
- needs : [ sdist, linux ]
94
+ needs : [ sdist, wheels ]
88
95
runs-on : ubuntu-latest
89
96
# Only publish to PyPi if the tag is not a pre-release
90
97
if : ${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-') }}
0 commit comments