Raise minimum PHP version to 8.1, due to PHP 8.0 EOL per https://cloud.google.com/php/getting-started/supported-php-versions
Drops tests for PHP 8.0, and adds tests for PHP 8.3. See https://www.php.net/supported-versions.php. PiperOrigin-RevId: 599636473pull/15475/head
parent
57f770f8c9
commit
3c8a3d27f7
|
@ -17,23 +17,27 @@ jobs:
|
|||
fail-fast: false # Don't cancel all jobs if one fails.
|
||||
matrix:
|
||||
include:
|
||||
- name: 8.0 Optimized
|
||||
version: "8.0.5"
|
||||
version-short: "8.0"
|
||||
- name: 8.1 Optimized
|
||||
version: "8.1.14"
|
||||
version-short: "8.1"
|
||||
command: composer test \&\& composer test_c
|
||||
- name: 8.0 Debug
|
||||
version: 8.0.5-dbg
|
||||
version-short: "8.0"
|
||||
- name: 8.1 Debug
|
||||
version: 8.1.14-dbg
|
||||
version-short: "8.1"
|
||||
command: composer test \&\& composer test_c
|
||||
- name: 8.0 Memory Leak
|
||||
version: 8.0.5-dbg
|
||||
version-short: "8.0"
|
||||
- name: 8.1 Memory Leak
|
||||
version: 8.1.14-dbg
|
||||
version-short: "8.1"
|
||||
# Run specialized memory leak & multirequest tests.
|
||||
command: composer test_c \&\& tests/multirequest.sh \&\& tests/memory_leak_test.sh
|
||||
- name: 8.0 Valgrind
|
||||
version: 8.0.5-dbg
|
||||
version-short: "8.0"
|
||||
- name: 8.1 Valgrind
|
||||
version: 8.1.14-dbg
|
||||
version-short: "8.1"
|
||||
command: composer test_valgrind
|
||||
- name: 8.3 Optimized
|
||||
version: "8.3.1"
|
||||
version-short: "8.3"
|
||||
command: composer test \&\& composer test_c
|
||||
|
||||
name: Linux ${{ matrix.name}}
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -59,7 +63,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false # Don't cancel all jobs if one fails.
|
||||
matrix:
|
||||
version: ['8.0']
|
||||
version: ['8.1']
|
||||
suffix: [ '', '-zts']
|
||||
test: ['test', 'test_c']
|
||||
exclude:
|
||||
|
@ -74,7 +78,7 @@ jobs:
|
|||
name: Linux 32-bit ${{ matrix.version}}${{ matrix.suffix_name }}${{ matrix.test_name }}
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/32bit@sha256:8275360dc5d676f3470872d79087901c0e4153453976bea908a92c82e8d209ea
|
||||
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/32bit@sha256:836f2cedcfe351d9a30055076630408e61994fc7d783e8333a99570968990eeb
|
||||
steps:
|
||||
- name: Checkout pending changes
|
||||
uses: protocolbuffers/protobuf-ci/checkout@v2
|
||||
|
@ -129,7 +133,7 @@ jobs:
|
|||
- name: Setup composer
|
||||
uses: protocolbuffers/protobuf-ci/composer-setup@v2
|
||||
with:
|
||||
cache-prefix: php-8.0
|
||||
cache-prefix: php-8.1
|
||||
directory: php
|
||||
|
||||
- name: Run tests
|
||||
|
@ -150,7 +154,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false # Don't cancel all jobs if one fails.
|
||||
matrix:
|
||||
version: ['8.2']
|
||||
version: ['8.2', '8.3']
|
||||
|
||||
name: MacOS PHP ${{ matrix.version }}
|
||||
runs-on: macos-12
|
||||
|
|
|
@ -41,7 +41,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false # Don't cancel all jobs if one fails.
|
||||
matrix:
|
||||
version: ["8.0", "8.1", "8.2"]
|
||||
version: ["8.1", "8.2", "8.3"]
|
||||
name: Build ${{ matrix.version }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"homepage": "https://developers.google.com/protocol-buffers/",
|
||||
"license": "BSD-3-Clause",
|
||||
"require": {
|
||||
"php": ">=8.0.0"
|
||||
"php": ">=8.1.0"
|
||||
},
|
||||
"provide": {
|
||||
"ext-protobuf": "*"
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<dependencies>
|
||||
<required>
|
||||
<php>
|
||||
<min>8.0.0</min>
|
||||
<min>8.1.0</min>
|
||||
</php>
|
||||
<pearinstaller>
|
||||
<min>1.4.0</min>
|
||||
|
|
Loading…
Reference in New Issue