Skip to content

Conversation

Copy link

Copilot AI commented Dec 15, 2025

Adds automated builds for Linux x86_64 and arm64 across PHP 8.1-8.4, supporting both glibc (Debian) and musl (Alpine) variants.

Changes

  • Dockerfile: Multi-stage build copying Rust 1.92 toolchain from official image into PHP base images. Configurable via PHP_VERSION and BASE_IMAGE build args.

  • GitHub Actions workflow (.github/workflows/build-multi-arch.yml):

    • Matrix strategy covering 16 build combinations (4 PHP versions × 2 architectures × 2 libc types)
    • Uses Docker Buildx with QEMU for cross-compilation
    • Uploads artifacts named libext_shopware-php{VERSION}-{ARCH}-{LIBC}.so
    • Includes smoke tests to verify extension loads
  • Local build script (build-local.sh): Wrapper for Docker builds matching CI configuration

  • Documentation:

    • BUILD.md: Build instructions and troubleshooting
    • .github/ARTIFACTS.md: Artifact download and installation guide
    • Updated README.md with pre-built binaries section

Usage

Local builds:

./build-local.sh 8.4 bookworm x86_64
./build-local.sh 8.3 alpine3.20 arm64

CI artifacts available at Actions → Build Multi-Architecture → Artifacts

Build Matrix

PHP x86_64 arm64 Variants
8.1-8.4 glibc (Debian Bookworm), musl (Alpine 3.20)
Original prompt

add GitHub Workflow which builds it for Linux x86 arm64 and for various PHP versions. also for musl and gnu Linux. we should use an docker file so we can test it also locally


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 5 commits December 15, 2025 05:15
Co-authored-by: shyim <6224096+shyim@users.noreply.github.com>
Co-authored-by: shyim <6224096+shyim@users.noreply.github.com>
Co-authored-by: shyim <6224096+shyim@users.noreply.github.com>
…ling

Co-authored-by: shyim <6224096+shyim@users.noreply.github.com>
Co-authored-by: shyim <6224096+shyim@users.noreply.github.com>
Copilot AI changed the title [WIP] Add GitHub workflow for building PHP on Linux architectures Add multi-architecture GitHub Actions workflow for PHP extension builds Dec 15, 2025
Copilot AI requested a review from shyim December 15, 2025 05:29
@shyim shyim closed this Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants