25
25
26
26
jobs :
27
27
build_wheels :
28
- name : " ${{ matrix.wheel-selector }} wheel on ${{ matrix.os }}"
28
+ name : " ${{ matrix.wheel-selector }}-* wheel on ${{ matrix.os }}"
29
29
runs-on : ${{ matrix.os }}
30
30
31
31
strategy :
@@ -38,18 +38,18 @@ jobs:
38
38
- " ubuntu-22.04"
39
39
- " windows-2022"
40
40
wheel-selector :
41
- - " cp39-* "
42
- - " cp310-* "
43
- - " cp311-* "
44
- - " cp312-* "
45
- - " cp313-* "
46
- - " pp38-* "
47
- - " pp39-* "
48
- - " pp310-* "
41
+ - " cp39"
42
+ - " cp310"
43
+ - " cp311"
44
+ - " cp312"
45
+ - " cp313"
46
+ - " pp38"
47
+ - " pp39"
48
+ - " pp310"
49
49
50
50
steps :
51
51
- name : Check out zfec sources
52
- uses : actions/checkout@v3
52
+ uses : actions/checkout@v4
53
53
with :
54
54
# Check out the full history, including tags. This is necessary to
55
55
# construct non-release version numbers.
63
63
# Configure cibuildwheel to build just some of the total wheels we
64
64
# could build for this architecture. This yields better parallelism
65
65
# on GitHub Actions execution.
66
- CIBW_BUILD : " ${{ matrix.wheel-selector }}"
66
+ CIBW_BUILD : " ${{ matrix.wheel-selector }}-* "
67
67
# Just make sure that Python can use zfec package.
68
68
CIBW_TEST_COMMAND : python -c "import zfec; print(zfec.__version__)"
69
69
# Build `universal2` and `arm64` wheels on an Intel runner.
@@ -75,17 +75,18 @@ jobs:
75
75
# patch releases of Python 3.9 if they haven't updated pip in their
76
76
# virtualenv.
77
77
CIBW_MANYLINUX_X86_64_IMAGE : " manylinux_2_28"
78
- - uses : actions/upload-artifact@v3
78
+ - uses : actions/upload-artifact@v4
79
79
name : Upload artifacts
80
80
with :
81
+ name : wheels-${{ matrix.wheel-selector }}-on-${{ matrix.os }}
81
82
path : ./wheelhouse/*.whl
82
83
83
84
build_sdist :
84
85
name : Build source distribution
85
86
runs-on : ubuntu-latest
86
87
87
88
steps :
88
- - uses : actions/checkout@v3
89
+ - uses : actions/checkout@v4
89
90
name : Check out zfec sources
90
91
with :
91
92
# Check out the full history, including tags. This is necessary to
@@ -101,9 +102,10 @@ jobs:
101
102
run : |
102
103
python3 setup.py sdist
103
104
104
- - uses : actions/upload-artifact@v3
105
+ - uses : actions/upload-artifact@v4
105
106
name : Upload artifacts
106
107
with :
108
+ name : sdist
107
109
path : dist/*.tar.gz
108
110
109
111
upload_pypi :
@@ -124,10 +126,11 @@ jobs:
124
126
# Download all artifacts previously built by this workflow to the dist
125
127
# directory where the publish step can find them. These are the sdist
126
128
# and all of the wheels build by the other jobs.
127
- - uses : " actions/download-artifact@v3 "
129
+ - uses : " actions/download-artifact@v4 "
128
130
with :
129
- name : " artifact "
131
+ pattern : " * "
130
132
path : " dist"
133
+ merge-multiple : true
131
134
132
135
# Define a conditional step to upload packages to the testing instance
133
136
# of PyPI.
0 commit comments