Skip to content

Commit

Permalink
Remove XMLRPC from PHP 8.4, Make PHP build faster by separating versi…
Browse files Browse the repository at this point in the history
…ons via a matrix
  • Loading branch information
navarr committed Nov 22, 2024
1 parent db9d24f commit 53ecb66
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
legacy-php:
name: Build Legacy PHP Images
runs-on: ubuntu-latest
strategy:
matrix:
php_version: [ "7.4", "8.0", "8.1" ]
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
Expand All @@ -29,14 +32,17 @@ jobs:
env:
PRE_AUTH: 1
IMAGE_NAME: ghcr.io/wardenenv/centos-php
VERSION_LIST: 7.4 8.0
VERSION_LIST: ${{ matrix.php_version }}
VARIANT_LIST: cli cli-loaders fpm fpm-loaders
PUSH_FLAG: 1
INDEV_FLAG: ${{ github.ref == 'refs/heads/main' && '0' || '1' }}
run: bash php/scripts/build.sh
php:
name: Build PHP Images
runs-on: ubuntu-latest
strategy:
matrix:
php_version: ["8.2", "8.3", "8.4"]
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
Expand All @@ -50,7 +56,7 @@ jobs:
env:
PRE_AUTH: 1
IMAGE_NAME: ghcr.io/wardenenv/centos-php
VERSION_LIST: 8.1 8.2 8.3 8.4
VERSION_LIST: ${{ matrix.php_version }}
VARIANT_LIST: cli cli-loaders fpm fpm-loaders
PUSH_FLAG: 1
INDEV_FLAG: ${{ github.ref == 'refs/heads/main' && '0' || '1' }}
Expand Down
1 change: 1 addition & 0 deletions php/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN set -eux \
&& PHP_PACKAGES= && for PKG in ${PHP_EXTENSIONS}; do \
if [[ ${PKG} = "mcrypt" ]] && (( ${PHP_VERSION} > 71 )); then continue; fi; \
if [[ ${PKG} = "sodium" ]] && (( ${PHP_VERSION} < 72 )); then continue; fi; \
if [[ ${PKG} = "xmlrpc" ]] && (( ${PHP_VERSION} > 83 )); then continue; fi; \
PHP_PACKAGES+="php-${PKG} "; \
done \
&& dnf install -y ${PHP_PACKAGES} git perl which npm patch gettext unzip bzip2 pwgen procps nmap-ncat jq \
Expand Down

0 comments on commit 53ecb66

Please sign in to comment.