@@ -38,10 +38,10 @@ jobs:
3838 run : |
3939 make zip
4040 ls -al dist
41- - name : Upload packed files to artifacts
42- uses : actions/upload-artifact@v2
41+ - name : Upload packed files to artifacts (source)
42+ uses : actions/upload-artifact@v4
4343 with :
44- name : build-artifacts-all
44+ name : build-artifacts-source
4545 path : ./dist/*
4646
4747 wheel_build :
@@ -102,35 +102,119 @@ jobs:
102102 run : |
103103 ls -al ./wheelhouse
104104 mv wheelhouse dist
105- - name : Upload packed files to artifacts
106- uses : actions/upload-artifact@v2
105+ - name : Upload packed files to artifacts (wheels)
106+ uses : actions/upload-artifact@v4
107107 with :
108- name : build-artifacts-all
108+ name : build-artifacts-wheels-${{ matrix.os }}-${{ matrix.python }}-${{ matrix.architecture }}
109109 path : ./dist/*
110110
111+ wheel_aggregate :
112+ name : Aggregate all wheels
113+ runs-on : ubuntu-20.04
114+ needs : wheel_build
115+ steps :
116+ - name : Create aggregation directory
117+ run : mkdir -p aggregated_wheels_all
118+
119+ - name : Download wheel ubuntu-20.04, 3.7, x86_64
120+ uses : actions/download-artifact@v4
121+ with :
122+ name : build-artifacts-wheels-ubuntu-20.04-3.7-x86_64
123+ path : aggregated_wheels_all
124+ - name : Download wheel ubuntu-20.04, 3.8, x86_64
125+ uses : actions/download-artifact@v4
126+ with :
127+ name : build-artifacts-wheels-ubuntu-20.04-3.8-x86_64
128+ path : aggregated_wheels_all
129+ - name : Download wheel ubuntu-20.04, 3.9, x86_64
130+ uses : actions/download-artifact@v4
131+ with :
132+ name : build-artifacts-wheels-ubuntu-20.04-3.9-x86_64
133+ path : aggregated_wheels_all
134+ - name : Download wheel ubuntu-20.04, 3.10, x86_64
135+ uses : actions/download-artifact@v4
136+ with :
137+ name : build-artifacts-wheels-ubuntu-20.04-3.10-x86_64
138+ path : aggregated_wheels_all
139+ - name : Download wheel ubuntu-20.04, 3.11, x86_64
140+ uses : actions/download-artifact@v4
141+ with :
142+ name : build-artifacts-wheels-ubuntu-20.04-3.11-x86_64
143+ path : aggregated_wheels_all
144+ - name : Download wheel ubuntu-20.04, 3.7, aarch64
145+ uses : actions/download-artifact@v4
146+ with :
147+ name : build-artifacts-wheels-ubuntu-20.04-3.7-aarch64
148+ path : aggregated_wheels_all
149+ - name : Download wheel ubuntu-20.04, 3.8, aarch64
150+ uses : actions/download-artifact@v4
151+ with :
152+ name : build-artifacts-wheels-ubuntu-20.04-3.8-aarch64
153+ path : aggregated_wheels_all
154+ - name : Download wheel ubuntu-20.04, 3.9, aarch64
155+ uses : actions/download-artifact@v4
156+ with :
157+ name : build-artifacts-wheels-ubuntu-20.04-3.9-aarch64
158+ path : aggregated_wheels_all
159+ - name : Download wheel ubuntu-20.04, 3.10, aarch64
160+ uses : actions/download-artifact@v4
161+ with :
162+ name : build-artifacts-wheels-ubuntu-20.04-3.10-aarch64
163+ path : aggregated_wheels_all
164+ - name : Download wheel ubuntu-20.04, 3.11, aarch64
165+ uses : actions/download-artifact@v4
166+ with :
167+ name : build-artifacts-wheels-ubuntu-20.04-3.11-aarch64
168+ path : aggregated_wheels_all
169+
170+ - name : Download wheel macos-13, 3.7, x86_64
171+ uses : actions/download-artifact@v4
172+ with :
173+ name : build-artifacts-wheels-macos-13-3.7-x86_64
174+ path : aggregated_wheels_all
175+ - name : Download wheel macos-13, 3.8, x86_64
176+ uses : actions/download-artifact@v4
177+ with :
178+ name : build-artifacts-wheels-macos-13-3.8-x86_64
179+ path : aggregated_wheels_all
180+ - name : Download wheel macos-13, 3.7, arm64
181+ uses : actions/download-artifact@v4
182+ with :
183+ name : build-artifacts-wheels-macos-13-3.7-arm64
184+ path : aggregated_wheels_all
185+ - name : Download wheel macos-13, 3.8, arm64
186+ uses : actions/download-artifact@v4
187+ with :
188+ name : build-artifacts-wheels-macos-13-3.8-arm64
189+ path : aggregated_wheels_all
190+
191+ - name : Upload unified wheels artifact
192+ uses : actions/upload-artifact@v4
193+ with :
194+ name : build-artifacts-wheels
195+ path : aggregated_wheels_all
196+
111197 # the publishing can only be processed on linux system
112198 wheel_publish :
113199 name : Publish the wheels to pypi
114200 runs-on : ubuntu-20.04
115201 needs :
116202 - source_build
117- - wheel_build
203+ - wheel_aggregate
118204 strategy :
119205 fail-fast : false
120206 matrix :
121207 python :
122208 - ' 3.8.7'
123209
124210 steps :
125- - name : Download packed files to artifacts
126- uses : actions/download-artifact@v3
211+ - name : Download unified wheels artifact
212+ uses : actions/download-artifact@v4
127213 with :
128- name : build-artifacts-all
214+ name : build-artifacts-wheels
129215 path : ./dist
130- - name : Show the buildings
131- shell : bash
132- run : |
133- ls -al ./dist
216+ - name : Show the aggregated wheels
217+ run : ls -al ./dist
134218 - name : Upload distribution 📦 to github release
135219 uses : svenstaro/upload-release-action@v2
136220 with :
@@ -145,4 +229,4 @@ jobs:
145229 password : ${{ secrets.PYPI_API_TOKEN }}
146230 verbose : true
147231 skip_existing : true
148- packages_dir : dist/
232+ packages_dir : dist/
0 commit comments