12
12
- ' setup.py'
13
13
- ' pyproject.toml'
14
14
branches : [master]
15
+ pull_request :
16
+ paths :
17
+ - ' .github/workflows/build-and-test-wheels.yml'
15
18
release :
16
19
types : [published]
17
20
21
24
runs-on : ${{ matrix.os }}
22
25
strategy :
23
26
matrix :
24
- os : [ubuntu-22 .04, macos-12 , macos-14]
27
+ os : [ubuntu-24 .04, macos-13 , macos-14]
25
28
fail-fast : false
26
29
27
30
steps :
@@ -42,19 +45,19 @@ jobs:
42
45
platforms : all
43
46
44
47
- name : Build manylinux wheels
45
- if : matrix.os == 'ubuntu-22 .04'
48
+ if : matrix.os == 'ubuntu-24 .04'
46
49
47
50
env :
48
51
# Configure cibuildwheel to build native archs, and some emulated ones
49
52
CIBW_ARCHS_LINUX : x86_64 aarch64
50
53
CIBW_BUILD_VERBOSITY : 1
51
54
52
55
- name : Build macOS Intel wheels
53
- if : matrix.os == 'macos-12 '
56
+ if : matrix.os == 'macos-13 '
54
57
55
58
env :
56
59
CIBW_ARCHS_MACOS : x86_64
57
- CIBW_ENVIRONMENT_MACOS : VIZDOOM_MACOS_ARCH=x86_64 HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_CLEANUP=1 MACOSX_DEPLOYMENT_TARGET=12 .0
60
+ CIBW_ENVIRONMENT_MACOS : VIZDOOM_MACOS_ARCH=x86_64 HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_CLEANUP=1 MACOSX_DEPLOYMENT_TARGET=13 .0
58
61
CIBW_BUILD_VERBOSITY : 1
59
62
60
63
- name : Build macOS Apple Silicon wheels
70
73
ls -l ./wheelhouse/*.whl
71
74
72
75
- name : Upload artifacts
73
- uses : actions/upload-artifact@v3
76
+ uses : actions/upload-artifact@v4
74
77
with :
78
+ name : artifact-${{ matrix.os }}-${{ matrix.python-version }}
75
79
path : ./wheelhouse/*.whl
76
80
77
81
test_wheels :
80
84
runs-on : ${{ matrix.os }}
81
85
strategy :
82
86
matrix :
83
- os : [ubuntu-22.04, ubuntu-24.04, macos-12, macos- 13, macos-14]
84
- python-version : ['3.8', '3. 9', '3.10', '3.11', '3.12']
87
+ os : [ubuntu-22.04, ubuntu-24.04, macos-13, macos-14]
88
+ python-version : ['3.9', '3.10', '3.11', '3.12']
85
89
fail-fast : false
86
90
87
91
steps :
@@ -95,11 +99,10 @@ jobs:
95
99
python-version : ${{ matrix.python-version }}
96
100
97
101
- name : Download all dists
98
- uses : actions/download-artifact@v3
102
+ uses : actions/download-artifact@v4
99
103
with :
100
- # Unpacks default artifact into dist/
101
- # If `name: artifact` is omitted, the action will create extra parent dir
102
- name : artifact
104
+ pattern : artifact-*
105
+ merge-multiple : true
103
106
path : dist
104
107
105
108
- name : Report dist directory
@@ -153,8 +156,9 @@ jobs:
153
156
run : pipx run build --sdist
154
157
155
158
- name : Upload sdist
156
- uses : actions/upload-artifact@v3
159
+ uses : actions/upload-artifact@v4
157
160
with :
161
+ name : artifact-sdist
158
162
path : dist/*.tar.gz
159
163
160
164
upload_pypi :
@@ -167,11 +171,10 @@ jobs:
167
171
if : github.event_name == 'release' && github.event.action == 'published'
168
172
steps :
169
173
- name : Download all dists
170
- uses : actions/download-artifact@v3
174
+ uses : actions/download-artifact@v4
171
175
with :
172
- # Unpacks default artifact into dist/
173
- # If `name: artifact` is omitted, the action will create extra parent dir
174
- name : artifact
176
+ pattern : artifact-*
177
+ merge-multiple : true
175
178
path : dist
176
179
177
180
- name : Publish to PyPI
0 commit comments