@@ -19,14 +19,15 @@ jobs:
1919 matrix :
2020 os : [windows-latest]
2121 steps :
22- - uses : actions/checkout@v4.1.1
22+ - uses : actions/checkout@v4.2.2
2323 - name : Build wheels
24- uses : pypa/cibuildwheel@v2.16.5
24+ uses : pypa/cibuildwheel@v2.22.0
2525 env :
2626 CIBW_BUILD : " *-win_amd64"
2727 CIBW_SKIP : " cp36-* pp*"
28- - uses : actions/upload-artifact@v3
28+ - uses : actions/upload-artifact@v4.4.3
2929 with :
30+ name : wheels_windows64__${{ github.sha }}
3031 path : ./wheelhouse/*.whl
3132
3233 build_wheels_windows_32 :
@@ -36,26 +37,27 @@ jobs:
3637 matrix :
3738 os : [windows-latest]
3839 steps :
39- - uses : actions/checkout@v4.1.1
40+ - uses : actions/checkout@v4.2.2
4041 - name : Build wheels
41- uses : pypa/cibuildwheel@v2.16.5
42+ uses : pypa/cibuildwheel@v2.22.0
4243 env :
4344 CIBW_BUILD : " *-win32"
4445 CIBW_SKIP : " cp36-* pp*"
45- - uses : actions/upload-artifact@v3
46+ - uses : actions/upload-artifact@v4.4.3
4647 with :
47- path : ./wheelhouse/*.whl
48- build_wheels_macos_linux :
48+ name : wheels_windows32__${{ github.sha }}
49+ path : ./wheelhouse/*.whl
50+
51+ build_wheels_linux :
4952 name : Build wheels on ${{ matrix.os }}
5053 runs-on : ${{ matrix.os }}
5154 strategy :
5255 matrix :
53- # macos-13 is an intel runner, macos-14 is apple silicon
54- os : [macos-13,macos-14,ubuntu-latest]
56+ os : [ubuntu-latest]
5557 steps :
56- - uses : actions/checkout@v3
58+ - uses : actions/checkout@v4.2.2
5759 - name : Build wheels
58- uses : pypa/cibuildwheel@v2.16.5
60+ uses : pypa/cibuildwheel@v2.22.0
5961 env :
6062 CIBW_MANYLINUX_X86_64_IMAGE : manylinux2014
6163 CIBW_SKIP : " cp36-* *-musllinux_* pp* *-*linux_{aarch64,ppc64le}"
@@ -72,14 +74,60 @@ jobs:
7274 --exclude libdl.so.2
7375 --wheel-dir {dest_dir}
7476 {wheel}
75- - uses : actions/upload-artifact@v3
77+ - uses : actions/upload-artifact@v4.4.3
78+ with :
79+ name : wheels_linux__${{ github.sha }}
80+ path : ./wheelhouse/*.whl
81+
82+ build_macos_arm64_wheels :
83+ name : Build wheels on macOS ARM64
84+ runs-on : macos-14
85+ steps :
86+ - uses : actions/checkout@v4.2.2
87+ - name : Build wheels
88+ uses : pypa/cibuildwheel@v2.22.0
89+ env :
90+ CIBW_SKIP : " cp36-*"
91+ - name : Upload wheels
92+ uses : actions/upload-artifact@v4.4.3
7693 with :
94+ name : wheels_macos_arm64__${{ github.sha }}
7795 path : ./wheelhouse/*.whl
96+
97+ build_wheels_macos_x86 :
98+ name : Build wheels for macOS x86_64
99+ runs-on : macos-13
100+
101+ strategy :
102+ matrix :
103+ architecture : [x86_64]
104+
105+ steps :
106+ - uses : actions/checkout@v4.2.2
107+ - name : Install dependencies
108+ run : |
109+ python -m pip install --upgrade pip
110+ pip install cibuildwheel # Install cibuildwheel to build the wheels
111+
112+ - name : Set macOS deployment target
113+ run : echo "MACOSX_DEPLOYMENT_TARGET=10.15" >> $GITHUB_ENV
114+
115+ - name : Build wheels with cibuildwheel
116+ run : |
117+ CIBW_ARCHS_MACOS="${{ matrix.architecture }}"
118+ python -m cibuildwheel --platform macos --output-dir ./wheelhouse
119+
120+ - name : Upload wheels as artifacts
121+ uses : actions/upload-artifact@v4.4.3
122+ with :
123+ name : wheels_macosx86_python313__${{ github.sha }}
124+ path : ./wheelhouse/*.whl
125+
78126 build_sdist :
79127 name : Build source distribution
80128 runs-on : ubuntu-latest
81129 steps :
82- - uses : actions/checkout@v3
130+ - uses : actions/checkout@v4.2.2
83131 - name : Install Python dependencies
84132 run : python -m pip install --upgrade pip build
85133 - name : Build sdist
@@ -102,14 +150,14 @@ jobs:
102150 env :
103151 VERSION : ${{ steps.version.outputs.VERSION}}
104152 - name : Upload sdist
105- uses : actions/upload-artifact@v3
153+ uses : actions/upload-artifact@v4.4.3
106154 with :
107155 path : |
108156 ./dist/*.tar.gz
109157
110158
111159 upload_pypi :
112- needs : [build_sdist,build_wheels_macos_linux , build_wheels_windows_64,build_wheels_windows_32]
160+ needs : [build_sdist,build_wheels_linux , build_wheels_windows_64,build_wheels_windows_32, build_macos_arm64_wheels, build_wheels_macos_x86 ]
113161 runs-on : ${{ matrix.os }}
114162 strategy :
115163 matrix :
@@ -129,4 +177,3 @@ jobs:
129177 - name : Publish distribution to PyPI
130178 if : startsWith(github.ref, 'refs/tags')
131179 uses : pypa/gh-action-pypi-publish@release/v1
132-
0 commit comments