Repository navigation
chore: bundle FrankenPHP 1.13.3 and drop the Intel Mac build #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,7 @@ on: | |
| type: string | ||
|
|
||
| env: | ||
| FRANKENPHP_VERSION: v1.12.2 | ||
| FRANKENPHP_VERSION: v1.13.3 | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
@@ -29,7 +29,6 @@ jobs: | |
| matrix: | ||
| platform: | ||
| - mac-arm64 | ||
| - mac-x86_64 | ||
| - linux-x86_64 | ||
| - linux-aarch64 | ||
| steps: | ||
|
|
@@ -210,13 +209,17 @@ jobs: | |
| TAG="${INPUT_KOEL_VERSION:-$REF_NAME}" | ||
| echo "tag=$TAG" >> "$GITHUB_OUTPUT" | ||
|
|
||
| - name: Create GitHub release | ||
| - name: Create or update the GitHub release | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| TAG: ${{ steps.tag.outputs.tag }} | ||
| REPO: ${{ github.repository }} | ||
| run: | | ||
| gh release create "$TAG" \ | ||
| --repo "$REPO" \ | ||
| --title "$TAG" \ | ||
| artifacts/koel-franken-*.tar.gz | ||
| if gh release view "$TAG" --repo "$REPO" >/dev/null 2>&1; then | ||
| gh release upload "$TAG" --repo "$REPO" --clobber artifacts/koel-franken-*.tar.gz | ||
| else | ||
| gh release create "$TAG" \ | ||
|
Comment on lines
+218
to
+221
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win 🔎 Supported by static analysis
Handle a concurrent release creation. The release job has no tag-scoped concurrency. Two runs can both enter the Suggested fix
🤖 Prompt for AI Agents
|
||
| --repo "$REPO" \ | ||
| --title "$TAG" \ | ||
| artifacts/koel-franken-*.tar.gz | ||
| fi | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,14 +17,14 @@ BUILD_ROOT="$HERE/build" | |
| mkdir -p "$BUILD_ROOT" | ||
|
|
||
| # Inputs (env-overridable). | ||
| KOEL_VERSION="${KOEL_VERSION:-$(curl -sSL https://api.github.com/repos/koel/koel/releases/latest | grep -m1 '"tag_name"' | sed -E 's/.*"tag_name": "([^"]+)".*/\1/')}" | ||
| FRANKENPHP_VERSION="${FRANKENPHP_VERSION:-$(curl -sSL https://api.github.com/repos/php/frankenphp/releases/latest | grep -m1 '"tag_name"' | sed -E 's/.*"tag_name": "([^"]+)".*/\1/')}" | ||
| KOEL_VERSION="${KOEL_VERSION:-$(curl -fsSL https://api.github.com/repos/koel/koel/releases/latest | grep -m1 '"tag_name"' | sed -E 's/.*"tag_name": "([^"]+)".*/\1/')}" | ||
| FRANKENPHP_VERSION="${FRANKENPHP_VERSION:-$(curl -fsSL https://api.github.com/repos/php/frankenphp/releases/latest | grep -m1 '"tag_name"' | sed -E 's/.*"tag_name": "([^"]+)".*/\1/')}" | ||
|
|
||
| # Platform detection. | ||
| if [[ -z "${PLATFORM:-}" ]]; then | ||
| case "$(uname -s)-$(uname -m)" in | ||
| Darwin-arm64) PLATFORM=mac-arm64 ;; | ||
| Darwin-x86_64) PLATFORM=mac-x86_64 ;; | ||
| Darwin-x86_64) echo "[build] FrankenPHP no longer ships Intel Mac binaries; build FrankenPHP from source instead" >&2; exit 2 ;; | ||
| Linux-x86_64) PLATFORM=linux-x86_64 ;; | ||
| Linux-aarch64) PLATFORM=linux-aarch64 ;; | ||
| *) echo "[build] unsupported host $(uname -s)-$(uname -m); pass PLATFORM= explicitly" >&2; exit 2 ;; | ||
|
|
@@ -33,7 +33,6 @@ fi | |
|
|
||
| case "$PLATFORM" in | ||
| mac-arm64) FRANKENPHP_ASSET=frankenphp-mac-arm64 ;; | ||
| mac-x86_64) FRANKENPHP_ASSET=frankenphp-mac-x86_64 ;; | ||
| linux-x86_64) FRANKENPHP_ASSET=frankenphp-linux-x86_64 ;; | ||
| linux-aarch64) FRANKENPHP_ASSET=frankenphp-linux-aarch64 ;; | ||
| *) echo "[build] unknown PLATFORM=$PLATFORM" >&2; exit 2 ;; | ||
|
|
@@ -49,15 +48,15 @@ mkdir -p "$BUNDLE_DIR" | |
|
|
||
| # Fetch FrankenPHP binary. | ||
| echo "[build] fetching FrankenPHP $FRANKENPHP_VERSION ($FRANKENPHP_ASSET)…" >&2 | ||
| curl -sSL -o "$BUNDLE_DIR/frankenphp" \ | ||
| curl -fsSL -o "$BUNDLE_DIR/frankenphp" \ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win 🔎 Supported by static analysis
Stage the Koel tarball download before the cache check accepts it. The cache check at Download to a temporary path and rename it only after 🐛 Suggested fix
🤖 Prompt for AI Agents
|
||
| "https://github.com/php/frankenphp/releases/download/$FRANKENPHP_VERSION/$FRANKENPHP_ASSET" | ||
| chmod +x "$BUNDLE_DIR/frankenphp" | ||
|
|
||
| # Fetch koel release tarball + extract into bundle. | ||
| echo "[build] fetching koel $KOEL_VERSION…" >&2 | ||
| KOEL_TARBALL="$BUILD_ROOT/koel-$KOEL_VERSION.tar.gz" | ||
| if [[ ! -f "$KOEL_TARBALL" ]]; then | ||
| curl -sSL -o "$KOEL_TARBALL" \ | ||
| curl -fsSL -o "$KOEL_TARBALL" \ | ||
| "https://github.com/koel/koel/releases/download/$KOEL_VERSION/koel-$KOEL_VERSION.tar.gz" | ||
| fi | ||
| tar -xzf "$KOEL_TARBALL" -C "$BUNDLE_DIR" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
Remove the obsolete Intel Mac asset when updating a release.
If an existing release contains a
mac-x86_64archive, this upload leaves that archive in place.--clobberreplaces only assets with matching names, and the matrix no longer builds an Intel Mac archive. Users can therefore download an outdated bundle from the rebuilt security release. Reconcile the release assets with the supported platform list when updating the release. (cli.github.com)🤖 Prompt for AI Agents