11name : Wheel
22
33on :
4- # push:
5- # branches:
6- # - pymem
7- # pull_request:
8- # branches:
9- # - pymem
10- workflow_dispatch :
11- inputs :
12- upload_pypi :
13- description : ' True to upload to pypi'
14- required : true
15- type : boolean
4+ push :
5+ branches :
6+ - pymem-release
7+ pull_request :
8+ branches :
9+ - pymem-release
1610
1711concurrency :
1812 group : ${{ github.workflow }}-${{ github.ref }}
@@ -93,35 +87,35 @@ jobs:
9387 manylinux_image : manylinux_2_28
9488
9589 # # MacOS x86_64
96- # - os: macos-13
97- # python: 310
98- # platform_id: macosx_x86_64
99- # - os: macos-13
100- # python: 311
101- # platform_id: macosx_x86_64
102- # - os: macos-13
103- # python: 312
104- # platform_id: macosx_x86_64
105- # - os: macos-13
106- # python: 313
107- # platform_id: macosx_x86_64
90+ - os : macos-13
91+ python : 311
92+ platform_id : macosx_x86_64
93+ - os : macos-13
94+ python : 312
95+ platform_id : macosx_x86_64
96+ - os : macos-13
97+ python : 313
98+ platform_id : macosx_x86_64
99+ - os : macos-13
100+ python : 314
101+ platform_id : macosx_x86_64
108102
109103 # # MacOS arm64
110- # - os: macos-14
111- # python: 310
112- # platform_id: macosx_arm64
113- # - os: macos-14
114- # python: 311
115- # platform_id: macosx_arm64
116- # - os: macos-14
117- # python: 312
118- # platform_id: macosx_arm64
119- # - os: macos-14
120- # python: 313
121- # platform_id: macosx_arm64
104+ - os : macos-14
105+ python : 311
106+ platform_id : macosx_arm64
107+ - os : macos-14
108+ python : 312
109+ platform_id : macosx_arm64
110+ - os : macos-14
111+ python : 313
112+ platform_id : macosx_arm64
113+ - os : macos-13
114+ python : 314
115+ platform_id : macosx_arm64
122116
123117 steps :
124- - uses : actions/checkout@v4
118+ - uses : actions/checkout@v6
125119 with :
126120 fetch-depth : 25
127121
@@ -130,7 +124,7 @@ jobs:
130124 # https://cibuildwheel.pypa.io/en/stable/
131125 # https://github.com/pypa/manylinux
132126 - name : Build wheels
133- uses : pypa/cibuildwheel@v2.23.3
127+ uses : pypa/cibuildwheel@v3.3.0
134128 env :
135129 CIBW_BUILD : cp${{ matrix.python }}-${{ matrix.platform_id }}
136130 CIBW_ARCHS : all
@@ -146,7 +140,7 @@ jobs:
146140 upload_all :
147141 needs : [build_wheels, make_sdist]
148142 runs-on : ubuntu-latest
149- if : ${{ inputs.upload_pypi }}
143+ if : ${{ contains(github.ref, 'release') }}
150144 steps :
151145 - uses : actions/download-artifact@v4
152146 with :
0 commit comments