@@ -2,11 +2,9 @@ name: PHP Build
22
33on :
44 push :
5- branches :
6- - main
5+ branches : [main]
76 pull_request :
8- branches :
9- - main
7+ branches : [main]
108
119jobs :
1210 build :
@@ -19,18 +17,24 @@ jobs:
1917 MYSQL_ROOT_PASSWORD : ' '
2018 MYSQL_ALLOW_EMPTY_PASSWORD : yes
2119 MYSQL_DATABASE : test
22- ports :
23- - 3306:3306
24- options : --health-cmd="mysqladmin ping --silent" --health-interval=10s --health-timeout=5s --health-retries=5
20+ ports : ['3306:3306']
21+ options : >-
22+ --health-cmd="mysqladmin ping --silent"
23+ --health-interval=10s
24+ --health-timeout=5s
25+ --health-retries=5
2526
2627 postgres :
2728 image : postgres:16
2829 env :
2930 POSTGRES_PASSWORD : postgres
3031 POSTGRES_DB : test
31- ports :
32- - 5432:5432
33- options : --health-cmd="pg_isready" --health-interval=10s --health-timeout=5s --health-retries=5
32+ ports : ['5432:5432']
33+ options : >-
34+ --health-cmd="pg_isready"
35+ --health-interval=10s
36+ --health-timeout=5s
37+ --health-retries=5
3438
3539 steps :
3640 - name : Checkout php-async repo
@@ -51,131 +55,100 @@ jobs:
5155 run : |
5256 sudo apt-get update
5357 sudo apt-get install -y \
54- gcc \
55- g++ \
56- autoconf \
57- bison \
58- re2c \
59- locales \
60- locales-all \
61- ldap-utils \
62- openssl \
63- slapd \
64- libgmp-dev \
65- libicu-dev \
66- libtidy-dev \
67- libenchant-2-dev \
68- libsasl2-dev \
69- libxpm-dev \
70- libzip-dev \
71- libbz2-dev \
72- libsqlite3-dev \
73- libwebp-dev \
74- libonig-dev \
75- libcurl4-openssl-dev \
76- libxml2-dev \
77- libxslt1-dev \
78- libpq-dev \
79- libreadline-dev \
80- libldap2-dev \
81- libsodium-dev \
82- libargon2-dev \
83- libsnmp-dev \
84- snmpd \
85- freetds-dev \
86- dovecot-core \
87- sendmail \
88- firebird-dev \
89- liblmdb-dev \
90- libtokyocabinet-dev \
91- libdb-dev \
92- libqdbm-dev \
93- libjpeg-dev \
94- libpng-dev \
95- libfreetype6-dev \
96- libuv1-dev
97- g++ --version
58+ gcc g++ autoconf bison re2c locales locales-all ldap-utils openssl slapd \
59+ libgmp-dev libicu-dev libtidy-dev libenchant-2-dev libsasl2-dev libxpm-dev \
60+ libzip-dev libbz2-dev libsqlite3-dev libwebp-dev libonig-dev libcurl4-openssl-dev \
61+ libxml2-dev libxslt1-dev libpq-dev libreadline-dev libldap2-dev libsodium-dev \
62+ libargon2-dev libsnmp-dev snmp snmp-mibs-downloader snmpd freetds-dev dovecot-core \
63+ sendmail firebird-dev liblmdb-dev libtokyocabinet-dev libdb-dev libqdbm-dev \
64+ libjpeg-dev libpng-dev libfreetype6-dev libuv1-dev
65+ g++ --version
66+ sudo mkdir -p /var/lib/snmp && sudo chown $(id -u):$(id -g) /var/lib/snmp
9867
9968 - name : Configure PHP
10069 working-directory : php-src
10170 run : |
10271 ./buildconf -f
103- ./configure \
104- --enable-zts \
105- --enable-option-checking=fatal \
106- --prefix=/usr \
107- --disable-phpdbg \
108- --enable-fpm \
109- --enable-opcache \
110- --with-pdo-mysql=mysqlnd \
111- --with-mysqli=mysqlnd \
112- --with-pgsql \
113- --with-pdo-pgsql \
114- --with-pdo-sqlite \
115- --enable-intl \
116- --without-pear \
117- --enable-gd \
118- --with-jpeg \
119- --with-webp \
120- --with-freetype \
121- --with-xpm \
122- --enable-exif \
123- --with-zip \
124- --with-zlib \
125- --enable-soap \
126- --enable-xmlreader \
127- --with-xsl \
128- --with-tidy \
129- --enable-sysvsem \
130- --enable-sysvshm \
131- --enable-shmop \
132- --enable-pcntl \
133- --with-readline \
134- --enable-mbstring \
135- --with-curl \
136- --with-gettext \
137- --enable-sockets \
138- --with-bz2 \
139- --with-openssl \
140- --with-gmp \
141- --enable-bcmath \
142- --enable-calendar \
143- --enable-ftp \
144- --with-enchant=/usr \
145- --enable-sysvmsg \
146- --with-ffi \
147- --enable-zend-test \
148- --enable-dl-test=shared \
149- --with-ldap \
150- --with-ldap-sasl \
151- --with-password-argon2 \
152- --with-mhash \
153- --with-sodium \
154- --enable-dba \
155- --with-cdb \
156- --enable-flatfile \
157- --enable-inifile \
158- --with-tcadb \
159- --with-lmdb \
160- --with-qdbm \
161- --with-snmp \
162- --with-config-file-path=/etc \
163- --with-config-file-scan-dir=/etc/php.d \
164- --with-pdo-firebird \
165- --enable-async
72+ ./configure \
73+ --enable-zts \
74+ --enable-option-checking=fatal \
75+ --prefix=/usr \
76+ --disable-phpdbg \
77+ --enable-fpm \
78+ --enable-opcache \
79+ --with-pdo-mysql=mysqlnd \
80+ --with-mysqli=mysqlnd \
81+ --with-pgsql \
82+ --with-pdo-pgsql \
83+ --with-pdo-sqlite \
84+ --enable-intl \
85+ --without-pear \
86+ --enable-gd \
87+ --with-jpeg \
88+ --with-webp \
89+ --with-freetype \
90+ --with-xpm \
91+ --enable-exif \
92+ --with-zip \
93+ --with-zlib \
94+ --enable-soap \
95+ --enable-xmlreader \
96+ --with-xsl \
97+ --with-tidy \
98+ --enable-sysvsem \
99+ --enable-sysvshm \
100+ --enable-shmop \
101+ --enable-pcntl \
102+ --with-readline \
103+ --enable-mbstring \
104+ --with-curl \
105+ --with-gettext \
106+ --enable-sockets \
107+ --with-bz2 \
108+ --with-openssl \
109+ --with-gmp \
110+ --enable-bcmath \
111+ --enable-calendar \
112+ --enable-ftp \
113+ --with-enchant=/usr \
114+ --enable-sysvmsg \
115+ --with-ffi \
116+ --enable-zend-test \
117+ --enable-dl-test=shared \
118+ --with-ldap \
119+ --with-ldap-sasl \
120+ --with-password-argon2 \
121+ --with-mhash \
122+ --with-sodium \
123+ --enable-dba \
124+ --with-cdb \
125+ --enable-flatfile \
126+ --enable-inifile \
127+ --with-tcadb \
128+ --with-lmdb \
129+ --with-qdbm \
130+ --with-snmp \
131+ --with-config-file-path=/etc \
132+ --with-config-file-scan-dir=/etc/php.d \
133+ --with-pdo-firebird \
134+ --enable-async
166135
167136 - name : Build PHP
168137 working-directory : php-src
169138 run : |
170- make -j$(nproc)
139+ make -j" $(nproc)"
171140 sudo make install
172141 sudo mkdir -p /etc/php.d
173142 sudo chmod 777 /etc/php.d
174- echo opcache.enable_cli=1 > /etc/php.d/opcache.ini
175- echo opcache.protect_memory=1 >> /etc/php.d/opcache.ini
143+ {
144+ echo "opcache.enable_cli=1"
145+ echo "opcache.protect_memory=1"
146+ } > /etc/php.d/opcache.ini
176147
177148 - name : Run tests
178149 working-directory : php-src
150+ env :
151+ MIBS : +ALL
179152 run : |
180153 sapi/cli/php run-tests.php \
181154 -d zend_extension=opcache.so \
0 commit comments