diff --git a/.github/workflows/static.yaml b/.github/workflows/static.yaml index c05065546..7f09202d9 100644 --- a/.github/workflows/static.yaml +++ b/.github/workflows/static.yaml @@ -95,6 +95,11 @@ jobs: runs-on: ubuntu-latest needs: [ prepare ] steps: + - name: Prepare + id: prepare + run: | + platform=${{ matrix.platform }} + echo "sanitized_platform=${platform//\//-}" >> "${GITHUB_OUTPUT}" - uses: actions/checkout@v4 with: @@ -154,9 +159,9 @@ jobs: - name: Upload metadata if: fromJson(needs.prepare.outputs.push) && !matrix.debug && !matrix.mimalloc - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: metadata-static-builder + name: metadata-static-builder-${{ steps.prepare.outputs.sanitized_platform }} path: /tmp/metadata/* if-no-files-found: error retention-days: 1 @@ -173,7 +178,7 @@ jobs: - name: Upload artifact if: ${{ !fromJson(needs.prepare.outputs.push) }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: frankenphp-linux-${{ matrix.platform == 'linux/amd64' && 'x86_64' || 'aarch64' }}${{ matrix.debug && '-debug' || '' }}${{ matrix.mimalloc && '-mimalloc' || '' }} path: frankenphp-linux-${{ matrix.platform == 'linux/amd64' && 'x86_64' || 'aarch64' }}${{ matrix.debug && '-debug' || '' }}${{ matrix.mimalloc && '-mimalloc' || '' }} @@ -199,10 +204,11 @@ jobs: steps: - name: Download metadata - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: metadata-static-builder + pattern: metadata-static-builder-* path: /tmp/metadata + merge-multiple: true - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -297,7 +303,7 @@ jobs: - name: Upload artifact if: github.ref_type == 'branch' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: frankenphp-mac-${{ matrix.platform }} path: dist/frankenphp-mac-${{ matrix.platform }}