Skip to content

Commit ddc450f

Browse files
committed
Add Solaris CI
1 parent a4bb5b9 commit ddc450f

File tree

4 files changed

+127
-0
lines changed

4 files changed

+127
-0
lines changed

.github/actions/solaris/action.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: Solaris
2+
inputs:
3+
configurationParameters:
4+
default: ''
5+
required: false
6+
runExtraTests:
7+
default: false
8+
required: false
9+
runs:
10+
using: composite
11+
steps:
12+
- name: Solaris
13+
uses: vmactions/solaris-vm@v1
14+
with:
15+
release: "11.4-gcc"
16+
usesh: true
17+
copyback: false
18+
# Temporarily disable sqlite, as FreeBSD ships it with disabled double quotes. We'll need to fix our tests.
19+
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269889
20+
prepare: |
21+
cd $GITHUB_WORKSPACE
22+
pkg install bison developer/icu libzip oniguruma re2c
23+
24+
OPCACHE_TLS_TESTS_DEPS="gcc"
25+
26+
./buildconf -f
27+
CC=gcc CXX=g++ \
28+
PATH=/usr/gnu/bin:/usr/bin \
29+
PKG_CONFIG_PATH=/usr/lib/amd64/pkgconfig \
30+
./configure \
31+
--prefix=/usr/local \
32+
--enable-debug \
33+
--enable-option-checking=fatal \
34+
--enable-fpm \
35+
`#--with-pdo-sqlite` \
36+
--without-sqlite3 \
37+
--without-pdo-sqlite \
38+
--without-pear \
39+
--with-bz2 \
40+
--with-jpeg \
41+
--with-webp \
42+
--with-freetype \
43+
--enable-gd \
44+
--enable-exif \
45+
--with-zip \
46+
--with-zlib \
47+
--enable-soap \
48+
--enable-xmlreader \
49+
--with-xsl \
50+
--with-libxml \
51+
--enable-shmop \
52+
--enable-pcntl \
53+
--enable-mbstring \
54+
--with-curl \
55+
--enable-sockets \
56+
--with-openssl \
57+
--enable-bcmath \
58+
--enable-calendar \
59+
--enable-ftp \
60+
--enable-zend-test \
61+
--enable-dl-test=shared \
62+
--enable-intl \
63+
--with-mhash \
64+
--with-config-file-path=/etc \
65+
--with-config-file-scan-dir=/etc/php.d \
66+
${{ inputs.configurationParameters }}
67+
68+
gmake -j2
69+
mkdir /etc/php.d
70+
gmake install > /dev/null
71+
echo opcache.enable_cli=1 > /etc/php.d/opcache.ini
72+
echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
73+
echo opcache.preload_user=root >> /etc/php.d/opcache.ini
74+
run: |
75+
cd $GITHUB_WORKSPACE
76+
77+
export SKIP_IO_CAPTURE_TESTS=1
78+
export CI_NO_IPV6=1
79+
export STACK_LIMIT_DEFAULTS_CHECK=1
80+
sapi/cli/php run-tests.php \
81+
-P -q -j2 \
82+
-g FAIL,BORK,LEAK,XLEAK \
83+
--no-progress \
84+
--offline \
85+
--show-diff \
86+
--show-slow 1000 \
87+
--set-timeout 120
88+
89+
if test "${{ inputs.runExtraTests }}" = "true"; then
90+
sapi/cli/php run-extra-tests.php
91+
fi

.github/workflows/nightly.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ on:
2626
run_freebsd_zts:
2727
required: true
2828
type: boolean
29+
run_solaris_zts:
30+
required: true
31+
type: boolean
2932
ubuntu_version:
3033
required: true
3134
type: string
@@ -1080,3 +1083,24 @@ jobs:
10801083
configurationParameters: >-
10811084
--${{ matrix.zts && 'enable' || 'disable' }}-zts
10821085
runExtraTests: true
1086+
SOLARIS:
1087+
strategy:
1088+
fail-fast: false
1089+
matrix:
1090+
zts: [true, false]
1091+
exclude:
1092+
- zts: ${{ !inputs.run_solaris_zts && true || '*never*' }}
1093+
name: "FREEBSD_${{ matrix.zts && 'ZTS' || 'NTS' }}"
1094+
runs-on: ubuntu-latest
1095+
timeout-minutes: 50
1096+
steps:
1097+
- name: git checkout
1098+
uses: actions/checkout@v5
1099+
with:
1100+
ref: ${{ inputs.branch }}
1101+
- name: FreeBSD
1102+
uses: ./.github/actions/solaris
1103+
with:
1104+
configurationParameters: >-
1105+
--${{ matrix.zts && 'enable' || 'disable' }}-zts
1106+
runExtraTests: true

.github/workflows/push.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ on:
1717
- PHP-8.3
1818
- PHP-8.4
1919
- master
20+
- github-solaris-ci
2021
pull_request:
2122
paths-ignore:
2223
- docs/**
@@ -373,3 +374,13 @@ jobs:
373374
uses: actions/checkout@v5
374375
- name: FreeBSD
375376
uses: ./.github/actions/freebsd
377+
SOLARIS:
378+
if: github.repository == 'psumbera/php-src' || github.event_name == 'pull_request'
379+
name: SOLARIS
380+
runs-on: ubuntu-latest
381+
timeout-minutes: 50
382+
steps:
383+
- name: git checkout
384+
uses: actions/checkout@v5
385+
- name: Solaris
386+
uses: ./.github/actions/solaris

.github/workflows/root.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
run_linux_ppc64: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9 }}
5757
run_macos_arm64: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 4) || matrix.branch.version[0] >= 9 }}
5858
run_freebsd_zts: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 3) || matrix.branch.version[0] >= 9 }}
59+
run_solaris_zts: ${{ (matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 3) || matrix.branch.version[0] >= 9 }}
5960
ubuntu_version: ${{
6061
(((matrix.branch.version[0] == 8 && matrix.branch.version[1] >= 5) || matrix.branch.version[0] >= 9) && '24.04')
6162
|| '22.04' }}

0 commit comments

Comments
 (0)