9595 runs-on : ubuntu-latest
9696 needs : [ prepare ]
9797 steps :
98+ -
99+ name : Prepare
100+ id : prepare
101+ run : |
102+ platform=${{ matrix.platform }}
103+ echo "sanitized_platform=${platform//\//-}" >> "${GITHUB_OUTPUT}"
98104 -
99105 uses : actions/checkout@v4
100106 with :
@@ -154,9 +160,9 @@ jobs:
154160 -
155161 name : Upload metadata
156162 if : fromJson(needs.prepare.outputs.push) && !matrix.debug && !matrix.mimalloc
157- uses : actions/upload-artifact@v3
163+ uses : actions/upload-artifact@v4
158164 with :
159- name : metadata-static-builder
165+ name : metadata-static-builder-${{ matrix.variant }}-${{ steps.prepare.outputs.sanitized_platform }}
160166 path : /tmp/metadata/*
161167 if-no-files-found : error
162168 retention-days : 1
@@ -173,9 +179,9 @@ jobs:
173179 -
174180 name : Upload artifact
175181 if : ${{ !fromJson(needs.prepare.outputs.push) }}
176- uses : actions/upload-artifact@v3
182+ uses : actions/upload-artifact@v4
177183 with :
178- name : frankenphp-linux-${{ matrix.platform == 'linux/amd64' && 'x86_64' || 'aarch64' }}${{ matrix.debug && '-debug' || '' }}${{ matrix.mimalloc && '-mimalloc' || '' }}
184+ name : frankenphp-linux-${{ matrix.platform == 'linux/amd64' && 'x86_64' || 'aarch64' }}${{ matrix.debug && '-debug' || '' }}${{ matrix.mimalloc && '-mimalloc' || '' }}-${{ steps.prepare.outputs.sanitized_platform }}
179185 path : frankenphp-linux-${{ matrix.platform == 'linux/amd64' && 'x86_64' || 'aarch64' }}${{ matrix.debug && '-debug' || '' }}${{ matrix.mimalloc && '-mimalloc' || '' }}
180186 -
181187 name : Upload special assets
@@ -199,10 +205,11 @@ jobs:
199205 steps :
200206 -
201207 name : Download metadata
202- uses : actions/download-artifact@v3
208+ uses : actions/download-artifact@v4
203209 with :
204- name : metadata-static-builder
210+ pattern : metadata-static-builder-${{ matrix.target }}-${{ matrix.variant }}-*
205211 path : /tmp/metadata
212+ merge-multiple : true
206213 -
207214 name : Set up Docker Buildx
208215 uses : docker/setup-buildx-action@v3
@@ -259,6 +266,12 @@ jobs:
259266 env :
260267 HOMEBREW_NO_AUTO_UPDATE : 1
261268 steps :
269+ -
270+ name : Prepare
271+ id : prepare
272+ run : |
273+ platform=${{ matrix.platform }}
274+ echo "sanitized_platform=${platform//\//-}" >> "${GITHUB_OUTPUT}"
262275 -
263276 uses : actions/checkout@v4
264277 with :
@@ -297,7 +310,7 @@ jobs:
297310 -
298311 name : Upload artifact
299312 if : github.ref_type == 'branch'
300- uses : actions/upload-artifact@v3
313+ uses : actions/upload-artifact@v4
301314 with :
302- name : frankenphp-mac-${{ matrix.platform }}
315+ name : frankenphp-mac-${{ matrix.platform }}-${{ steps.prepare.outputs.sanitized_platform }}
303316 path : dist/frankenphp-mac-${{ matrix.platform }}
0 commit comments