Skip to content
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

CI: Test against PHP 8.3 and 8.4 #95

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 37 additions & 8 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,38 @@ name: CI
on: [push, pull_request]

jobs:
PHP84-alpine:
name: PHP 8.4 Alpine 3.19
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4

- name: "Build extension"
run: "docker build -t simdjsontest -f docker_php8.4-alpine ."

- name: "Show"
run: "docker run --rm --env SIMDJSON_HIGH_MEMORY_TESTS=1 simdjsontest php --ri simdjson"

PHP83-alpine:
name: PHP 8.3 Alpine 3.17
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4

- name: "Build extension"
run: "docker build -t simdjsontest -f docker_php8.3-alpine ."

- name: "Show"
run: "docker run --rm --env SIMDJSON_HIGH_MEMORY_TESTS=1 simdjsontest php --ri simdjson"

PHP82-alpine:
name: PHP 8.2 Alpine 3.16
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: "Build extension"
run: "docker build -t simdjsontest -f docker_php8.2-alpine ."
Expand All @@ -20,7 +46,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: "Build extension"
run: "docker build -t simdjsontest -f docker_php8.1-alpine ."
Expand All @@ -33,7 +59,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: "Build extension"
run: "docker build -t simdjsontest -f docker_php8.0-alpine ."
Expand All @@ -46,7 +72,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: "Build extension"
run: "docker build -t simdjsontest -f docker_php7.4-alpine ."
Expand All @@ -59,7 +85,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: "Build extension"
run: "docker build -t simdjsontest -f docker_php7.3-alpine ."
Expand All @@ -72,7 +98,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: "Build extension"
run: "docker build -t simdjsontest -f docker_php7.2-alpine ."
Expand All @@ -85,7 +111,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: "Build extension"
run: "docker build -t simdjsontest -f docker_php7.1-alpine ."
Expand All @@ -105,14 +131,17 @@ jobs:
- "7.4"
- "8.0"
- "8.1"
- "8.2"
- "8.3"
- "8.4"
os: [ubuntu-latest]
experimental: [false]
runs-on: ${{ matrix.os }}
name: PHP ${{ matrix.php-version }} Test on ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
steps:
- name: "Checkout"
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: "Install PHP"
uses: shivammathur/setup-php@v2
Expand Down
2 changes: 1 addition & 1 deletion docker_php8.2-alpine
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.2.0RC2-cli-alpine3.16
FROM php:8.2-cli-alpine3.16

COPY . /tmp/simdjson

Expand Down
27 changes: 27 additions & 0 deletions docker_php8.3-alpine
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM php:8.3-cli-alpine3.17

COPY . /tmp/simdjson

# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
g++ \
gcc \
make \
pkgconf \
git \
re2c

ENV REPORT_EXIT_STATUS=1

RUN set -xe \
&& apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
&& cd /tmp/simdjson \
&& phpize \
&& ./configure \
&& make -j$(nproc) \
&& make install \
&& make test \
&& rm -rf /tmp/simdjson \
&& echo "extension=simdjson.so" > /usr/local/etc/php/conf.d/simdjson.ini
27 changes: 27 additions & 0 deletions docker_php8.4-alpine
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM php:8.4-cli-alpine3.19

COPY . /tmp/simdjson

# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
g++ \
gcc \
make \
pkgconf \
git \
re2c

ENV REPORT_EXIT_STATUS=1

RUN set -xe \
&& apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
&& cd /tmp/simdjson \
&& phpize \
&& ./configure \
&& make -j$(nproc) \
&& make install \
&& make test \
&& rm -rf /tmp/simdjson \
&& echo "extension=simdjson.so" > /usr/local/etc/php/conf.d/simdjson.ini