ci: update static artifact actions to v4 (#1264)

This commit is contained in:
Vincent Amstoutz
2024-12-20 10:56:44 +01:00
committed by GitHub
parent d276032e20
commit 57bc54864e

View File

@@ -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 }}