1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix Solaris tests and add nightly CI job

Closes GH-20709
This commit is contained in:
Petr Sumbera
2025-12-12 07:21:39 -05:00
committed by Ilija Tovilo
parent 7a1c2612c0
commit ce1cadba29
89 changed files with 611 additions and 372 deletions

88
.github/actions/solaris/action.yml vendored Normal file
View File

@@ -0,0 +1,88 @@
name: Solaris
inputs:
configurationParameters:
default: ''
required: false
runExtraTests:
default: false
required: false
runs:
using: composite
steps:
- name: Solaris
uses: vmactions/solaris-vm@v1
with:
release: "11.4-gcc"
usesh: true
copyback: false
disable-cache: true
prepare: |
cd $GITHUB_WORKSPACE
pkg install bison developer/icu libzip oniguruma re2c
./buildconf -f
CC=gcc CXX=g++ \
CFLAGS="-Wno-char-subscripts" \
PATH=/usr/gnu/bin:/usr/bin \
PKG_CONFIG_PATH=/usr/lib/amd64/pkgconfig \
./configure \
--prefix=/usr/local \
--enable-debug \
--enable-werror \
--enable-option-checking=fatal \
--enable-fpm \
--without-pear \
--with-bz2 \
--with-jpeg \
--with-webp \
--with-freetype \
--enable-gd \
--enable-exif \
--with-zip \
--with-zlib \
--enable-soap \
--enable-xmlreader \
--with-xsl \
--with-libxml \
--enable-shmop \
--enable-pcntl \
--enable-mbstring \
--with-curl \
--enable-sockets \
--with-openssl \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-zend-test \
--enable-dl-test=shared \
--enable-intl \
--with-mhash \
--with-config-file-path=/etc \
--with-config-file-scan-dir=/etc/php.d \
${{ inputs.configurationParameters }}
gmake -j2
mkdir /etc/php.d
gmake install > /dev/null
echo opcache.enable_cli=1 > /etc/php.d/opcache.ini
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
echo opcache.preload_user=root >> /etc/php.d/opcache.ini
run: |
cd $GITHUB_WORKSPACE
export SKIP_IO_CAPTURE_TESTS=1
export CI_NO_IPV6=1
export STACK_LIMIT_DEFAULTS_CHECK=1
PATH=/usr/gnu/bin:/usr/bin \
sapi/cli/php run-tests.php \
-P -q -j1 \
-g FAIL,BORK,LEAK,XLEAK \
--no-progress \
--offline \
--show-diff \
--show-slow 1000 \
--set-timeout 120
if test "${{ inputs.runExtraTests }}" = "true"; then
sapi/cli/php run-extra-tests.php
fi