File tree Expand file tree Collapse file tree 5 files changed +130
-0
lines changed Expand file tree Collapse file tree 5 files changed +130
-0
lines changed Original file line number Diff line number Diff line change 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+ PKG_CONFIG_PATH=/usr/lib/amd64/pkgconfig \
29+ ./configure \
30+ --prefix=/usr/local \
31+ --enable-debug \
32+ --enable-option-checking=fatal \
33+ --enable-fpm \
34+ `#--with-pdo-sqlite` \
35+ --without-sqlite3 \
36+ --without-pdo-sqlite \
37+ --without-pear \
38+ --with-bz2 \
39+ --with-jpeg \
40+ --with-webp \
41+ --with-freetype \
42+ --enable-gd \
43+ --enable-exif \
44+ --with-zip \
45+ --with-zlib \
46+ --enable-soap \
47+ --enable-xmlreader \
48+ --with-xsl \
49+ --with-libxml \
50+ --enable-shmop \
51+ --enable-pcntl \
52+ --enable-mbstring \
53+ --with-curl \
54+ --enable-sockets \
55+ --with-openssl \
56+ --enable-bcmath \
57+ --enable-calendar \
58+ --enable-ftp \
59+ --enable-zend-test \
60+ --enable-dl-test=shared \
61+ --enable-intl \
62+ --with-mhash \
63+ --with-config-file-path=/etc \
64+ --with-config-file-scan-dir=/etc/php.d \
65+ ${{ inputs.configurationParameters }}
66+
67+ gmake -j2
68+ mkdir /etc/php.d
69+ gmake install > /dev/null
70+ echo opcache.enable_cli=1 > /etc/php.d/opcache.ini
71+ echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
72+ echo opcache.preload_user=root >> /etc/php.d/opcache.ini
73+ run : |
74+ cd $GITHUB_WORKSPACE
75+
76+ export SKIP_IO_CAPTURE_TESTS=1
77+ export CI_NO_IPV6=1
78+ export STACK_LIMIT_DEFAULTS_CHECK=1
79+ sapi/cli/php run-tests.php \
80+ -P -q -j2 \
81+ -g FAIL,BORK,LEAK,XLEAK \
82+ --no-progress \
83+ --offline \
84+ --show-diff \
85+ --show-slow 1000 \
86+ --set-timeout 120
87+
88+ if test "${{ inputs.runExtraTests }}" = "true"; then
89+ sapi/cli/php run-extra-tests.php
90+ fi
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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' }}
Original file line number Diff line number Diff line change 1818
1919/* {{{ includes */
2020
21+ #if 1
22+ #define XXX 0
23+ #endif
24+
2125#define ZEND_INCLUDE_FULL_WINDOWS_HEADERS
2226
2327#include "php.h"
You can’t perform that action at this time.
0 commit comments