Skip to content

Commit 74b6090

Browse files
committed
chore: Updated github actions to use upload-artifact/merge@4
1 parent e143548 commit 74b6090

File tree

2 files changed

+25
-15
lines changed

2 files changed

+25
-15
lines changed

.github/workflows/python-build-test.yaml

+16-6
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
- name: Upload wheels
125125
uses: actions/upload-artifact@v4
126126
with:
127-
name: wheels
127+
name: wheels-linux-${{ matrix.runs-on }}
128128
path: dist
129129

130130
windows:
@@ -168,7 +168,7 @@ jobs:
168168
- name: Upload wheels
169169
uses: actions/upload-artifact@v4
170170
with:
171-
name: wheels
171+
name: wheels-windows-${{ matrix.runs-on }}
172172
path: dist
173173

174174
macos:
@@ -213,13 +213,23 @@ jobs:
213213
- name: Upload wheels
214214
uses: actions/upload-artifact@v4
215215
with:
216-
name: wheels
216+
name: wheels-macos-${{ matrix.runs-on }}
217217
path: dist
218218

219+
merge:
220+
runs-on: ubuntu-latest
221+
needs: [ macos, windows, linux ]
222+
steps:
223+
- name: Merge Artifacts
224+
uses: actions/upload-artifacts/merge@v4
225+
with:
226+
name: wheels
227+
pattern: wheels-*
228+
219229
test-mdbook-python:
220230
name: Test MDBook Python Snippets
221231
runs-on: ubuntu-latest
222-
needs: [linux]
232+
needs: [merge]
223233
steps:
224234
- uses: actions/checkout@v4
225235

@@ -253,7 +263,7 @@ jobs:
253263
test-mdbook-build:
254264
name: Test MDBook Building
255265
runs-on: ubuntu-latest
256-
needs: [linux]
266+
needs: [merge]
257267
steps:
258268
- uses: actions/checkout@v4
259269

@@ -287,7 +297,7 @@ jobs:
287297
name: Release
288298
runs-on: ubuntu-latest
289299
if: startsWith(github.ref, 'refs/tags/python-')
290-
needs: [linux, windows, macos, test-mdbook-python, test-mdbook-build]
300+
needs: [merge, test-mdbook-python, test-mdbook-build]
291301
steps:
292302
- uses: actions/checkout@v4
293303
with:

pylace/Cargo.lock

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)