@@ -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,12 +102,98 @@ 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@v3
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@v3
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@v3
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@v3
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@v3
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@v3
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@v3
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@v3
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@v3
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@v3
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@v3
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@v3
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@v3
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@v3
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
@@ -122,15 +208,22 @@ jobs:
122208 - ' 3.8.7'
123209
124210 steps :
125- - name : Download packed files to artifacts
211+ # - name: Download packed files to artifacts
212+ # uses: actions/download-artifact@v3
213+ # with:
214+ # name: build-artifacts-wheels
215+ # path: ./dist
216+ # - name: Show the buildings
217+ # shell: bash
218+ # run: |
219+ # ls -al ./dist
220+ - name : Download unified wheels artifact
126221 uses : actions/download-artifact@v3
127222 with :
128- name : build-artifacts-all
223+ name : build-artifacts-wheels
129224 path : ./dist
130- - name : Show the buildings
131- shell : bash
132- run : |
133- ls -al ./dist
225+ - name : Show the aggregated wheels
226+ run : ls -al ./dist
134227 - name : Upload distribution 📦 to github release
135228 uses : svenstaro/upload-release-action@v2
136229 with :
0 commit comments