Skip to content

Commit 6433bce

Browse files
oprypincopybara-github
authored andcommitted
CI: Migrate to upload-artifact@v4
Uploading to the same artifact name with implicit merge is no longer allowed, so merge explicitly. Initially I thought to not provide the merged artifact, but it seems it's mentioned in instructions several times, so, fine. PiperOrigin-RevId: 693629641
1 parent 502da7d commit 6433bce

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ jobs:
4444
-v "$(pwd):/io" \
4545
"$DOCKER_IMAGE" \
4646
/io/build_scripts/wheels/manylinux.sh
47-
- uses: actions/upload-artifact@v3
47+
- uses: actions/upload-artifact@v4
4848
with:
49-
name: dist
50-
path: dist
49+
name: dist-${{ matrix.platform }}-${{ matrix.pyver }}
50+
path: dist/*.whl
5151
macosx_wheels:
5252
name: Python ${{ matrix.python_version }} MacOS wheels
5353
# Note: the container MacOS version may differ from the SDK
@@ -68,7 +68,18 @@ jobs:
6868
python-version: ${{ matrix.python_version }}
6969
- name: Build MacOS wheels
7070
run: './build_scripts/wheels/macos.sh'
71-
- uses: actions/upload-artifact@v3
71+
- uses: actions/upload-artifact@v4
72+
with:
73+
name: dist-macos-py${{ matrix.python_version }}
74+
path: dist/*.whl
75+
merge:
76+
name: Merge artifacts
77+
runs-on: ubuntu-latest
78+
needs:
79+
- manylinux_wheels
80+
- macosx_wheels
81+
steps:
82+
- name: Merge artifacts
83+
uses: actions/upload-artifact/merge@v4
7284
with:
7385
name: dist
74-
path: dist

0 commit comments

Comments
 (0)