Skip to content

Commit

Permalink
ci: update static artifact actions to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceAmstoutz committed Dec 19, 2024
1 parent d276032 commit b29745a
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ 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:
Expand Down Expand Up @@ -154,9 +160,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
Expand All @@ -173,9 +179,9 @@ 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' || '' }}
name: frankenphp-linux-${{ matrix.platform == 'linux/amd64' && 'x86_64' || 'aarch64' }}${{ matrix.debug && '-debug' || '' }}${{ matrix.mimalloc && '-mimalloc' || '' }}-${{ steps.prepare.outputs.sanitized_platform }}
path: frankenphp-linux-${{ matrix.platform == 'linux/amd64' && 'x86_64' || 'aarch64' }}${{ matrix.debug && '-debug' || '' }}${{ matrix.mimalloc && '-mimalloc' || '' }}
-
name: Upload special assets
Expand All @@ -199,10 +205,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-${{ matrix.target }}-*
path: /tmp/metadata
merge-multiple: true
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down Expand Up @@ -259,6 +266,12 @@ jobs:
env:
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
-
name: Prepare
id: prepare
run: |
platform=${{ matrix.platform }}
echo "sanitized_platform=${platform//\//-}" >> "${GITHUB_OUTPUT}"
-
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -297,7 +310,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 }}
name: frankenphp-mac-${{ matrix.platform }}-${{ steps.prepare.outputs.sanitized_platform }}
path: dist/frankenphp-mac-${{ matrix.platform }}

0 comments on commit b29745a

Please sign in to comment.