Skip to content

Commit 01beb66

Browse files
0x346e3730henderkesdunglas
authored
ci: PHP 8.5 (#2006)
Co-authored-by: Marc <m@pyc.ac> Co-authored-by: Kévin Dunglas <kevin@dunglas.fr>
1 parent 41e0713 commit 01beb66

14 files changed

Lines changed: 20 additions & 21 deletions

File tree

.github/workflows/docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
PHP_82_LATEST=$(skopeo inspect docker://docker.io/library/php:8.2 --override-os linux --override-arch amd64 | jq -r '.Env[] | select(test("^PHP_VERSION=")) | sub("^PHP_VERSION="; "")')
6060
PHP_83_LATEST=$(skopeo inspect docker://docker.io/library/php:8.3 --override-os linux --override-arch amd64 | jq -r '.Env[] | select(test("^PHP_VERSION=")) | sub("^PHP_VERSION="; "")')
6161
PHP_84_LATEST=$(skopeo inspect docker://docker.io/library/php:8.4 --override-os linux --override-arch amd64 | jq -r '.Env[] | select(test("^PHP_VERSION=")) | sub("^PHP_VERSION="; "")')
62-
PHP_85_LATEST=$(skopeo inspect docker://docker.io/library/php:8.5-rc --override-os linux --override-arch amd64 | jq -r '.Env[] | select(test("^PHP_VERSION=")) | sub("^PHP_VERSION="; "")')
62+
PHP_85_LATEST=$(skopeo inspect docker://docker.io/library/php:8.5 --override-os linux --override-arch amd64 | jq -r '.Env[] | select(test("^PHP_VERSION=")) | sub("^PHP_VERSION="; "")')
6363
{
6464
echo php_version="${PHP_82_LATEST},${PHP_83_LATEST},${PHP_84_LATEST},${PHP_85_LATEST}"
6565
echo php82_version="${PHP_82_LATEST//./-}"

.github/workflows/sanitizers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Determine PHP version
5353
id: determine-php-version
5454
run: |
55-
curl -fsSL 'https://www.php.net/releases/index.php?json&max=1&version=8.4' -o version.json
55+
curl -fsSL 'https://www.php.net/releases/index.php?json&max=1&version=8.5' -o version.json
5656
echo version="$(jq -r 'keys[0]' version.json)" >> "$GITHUB_OUTPUT"
5757
echo archive="$(jq -r '.[] .source[] | select(.filename |endswith(".xz")) | "https://www.php.net/distributions/" + .filename' version.json)" >> "$GITHUB_OUTPUT"
5858
- name: Cache PHP

.github/workflows/tests.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
tests-linux:
2424
name: Tests (Linux, PHP ${{ matrix.php-versions }})
2525
runs-on: ubuntu-latest
26-
continue-on-error: ${{ matrix.experimental || false }}
26+
continue-on-error: false
2727
strategy:
2828
fail-fast: false
2929
matrix:
@@ -32,7 +32,6 @@ jobs:
3232
- php-versions: "8.3"
3333
- php-versions: "8.4"
3434
- php-versions: "8.5"
35-
experimental: true
3635
env:
3736
GOMAXPROCS: 10
3837
LIBRARY_PATH: ${{ github.workspace }}/watcher/target/lib
@@ -84,18 +83,18 @@ jobs:
8483
run: ./reload_test.sh
8584
- name: Lint Go code
8685
uses: golangci/golangci-lint-action@v9
87-
if: matrix.php-versions == '8.4'
86+
if: matrix.php-versions == '8.5'
8887
with:
8988
version: latest
9089
- name: Ensure go.mod is tidy
91-
if: matrix.php-versions == '8.4'
90+
if: matrix.php-versions == '8.5'
9291
run: go mod tidy -diff
9392
- name: Ensure caddy/go.mod is tidy
94-
if: matrix.php-versions == '8.4'
93+
if: matrix.php-versions == '8.5'
9594
run: go mod tidy -diff
9695
working-directory: caddy/
9796
tests-mac:
98-
name: Tests (macOS, PHP 8.4)
97+
name: Tests (macOS, PHP 8.5)
9998
runs-on: macos-latest
10099
env:
101100
HOMEBREW_NO_AUTO_UPDATE: 1
@@ -111,7 +110,7 @@ jobs:
111110
caddy/go.sum
112111
- uses: shivammathur/setup-php@v2
113112
with:
114-
php-version: 8.4
113+
php-version: 8.5
115114
ini-file: development
116115
coverage: none
117116
tools: none

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ RUN go mod download
110110
WORKDIR /go/src/app
111111
COPY --link . ./
112112

113-
# See https://github.com/docker-library/php/blob/master/8.4/trixie/zts/Dockerfile#L57-L59 for PHP values
113+
# See https://github.com/docker-library/php/blob/master/8.5/trixie/zts/Dockerfile#L57-L59 for PHP values
114114
ENV CGO_CFLAGS="-DFRANKENPHP_VERSION=$FRANKENPHP_VERSION $PHP_CFLAGS"
115115
ENV CGO_CPPFLAGS=$PHP_CPPFLAGS
116116
ENV CGO_LDFLAGS="-L/usr/local/lib -lssl -lcrypto -lreadline -largon2 -lcurl -lonig -lz $PHP_LDFLAGS"

dev-alpine.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ RUN apk add --no-cache \
4848
echo 'set auto-load safe-path /' > /root/.gdbinit
4949

5050
WORKDIR /usr/local/src/php
51-
RUN git clone --branch=PHP-8.4 https://github.com/php/php-src.git . && \
51+
RUN git clone --branch=PHP-8.5 https://github.com/php/php-src.git . && \
5252
# --enable-embed is necessary to generate libphp.so, but we don't use this SAPI directly
5353
./buildconf --force && \
5454
EXTENSION_DIR=/usr/lib/frankenphp/modules ./configure \

dev.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ RUN apt-get update && \
5050
apt-get clean
5151

5252
WORKDIR /usr/local/src/php
53-
RUN git clone --branch=PHP-8.4 https://github.com/php/php-src.git . && \
53+
RUN git clone --branch=PHP-8.5 https://github.com/php/php-src.git . && \
5454
# --enable-embed is only necessary to generate libphp.so, we don't use this SAPI directly
5555
./buildconf --force && \
5656
EXTENSION_DIR=/usr/lib/frankenphp/modules ./configure \

docker-bake.hcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ variable "VERSION" {
77
}
88

99
variable "PHP_VERSION" {
10-
default = "8.2,8.3,8.4"
10+
default = "8.2,8.3,8.4,8.5"
1111
}
1212

1313
variable "GO_VERSION" {
@@ -30,7 +30,7 @@ variable "CI" {
3030
}
3131

3232
variable DEFAULT_PHP_VERSION {
33-
default = "8.4"
33+
default = "8.5"
3434
}
3535

3636
function "tag" {

docs/cn/docker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[FrankenPHP Docker 镜像](https://hub.docker.com/r/dunglas/frankenphp) 基于 [官方 PHP 镜像](https://hub.docker.com/_/php/)。提供适用于流行架构的 Debian 和 Alpine Linux 变体。推荐使用 Debian 变体。
44

5-
提供 PHP 8.2、8.3 和 8.4 的变体。
5+
提供 PHP 8.2、8.3、8.4 和 8.5 的变体。
66

77
标签遵循此模式:`dunglas/frankenphp:<frankenphp-version>-php<php-version>-<os>`
88

docs/docker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Debian and Alpine Linux variants are provided for popular architectures.
55
Debian variants are recommended.
66

7-
Variants for PHP 8.2, 8.3 and 8.4 are provided.
7+
Variants for PHP 8.2, 8.3, 8.4 and 8.5 are provided.
88

99
The tags follow this pattern: `dunglas/frankenphp:<frankenphp-version>-php<php-version>-<os>`
1010

docs/fr/docker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Les images Docker de [FrankenPHP](https://hub.docker.com/r/dunglas/frankenphp) sont basées sur les [images PHP officielles](https://hub.docker.com/_/php/). Des variantes Debian et Alpine Linux sont fournies pour les architectures populaires. Les variantes Debian sont recommandées.
44

5-
Des variantes pour PHP 8.2, 8.3 et 8.4 sont disponibles. [Parcourir les tags](https://hub.docker.com/r/dunglas/frankenphp/tags).
5+
Des variantes pour PHP 8.2, 8.3, 8.4 et 8.5 sont disponibles. [Parcourir les tags](https://hub.docker.com/r/dunglas/frankenphp/tags).
66

77
Les tags suivent le pattern suivant: `dunglas/frankenphp:<frankenphp-version>-php<php-version>-<os>`
88

0 commit comments

Comments
 (0)