1name: ./configure
2inputs:
3  configurationParameters:
4    default: ''
5    required: false
6  skipSlow:
7    default: false
8    required: false
9  asan:
10    default: false
11    required: false
12runs:
13  using: composite
14  steps:
15    - shell: bash
16      run: |
17        set -x
18        ./buildconf --force
19        ./configure \
20          --enable-option-checking=fatal \
21          --prefix=/usr \
22          --enable-phpdbg \
23          --enable-fpm \
24          --with-pdo-mysql=mysqlnd \
25          --with-mysqli=mysqlnd \
26          ${{ inputs.skipSlow == 'false' && '--with-pgsql' || '' }} \
27          ${{ inputs.skipSlow == 'false' && '--with-pdo-pgsql' || '' }} \
28          ${{ inputs.skipSlow == 'false' && '--with-pdo-sqlite' || '' }} \
29          --enable-intl \
30          --without-pear \
31          --enable-gd \
32          --with-jpeg \
33          --with-webp \
34          ${{ inputs.asan == 'false' && '--with-avif' || '' }} \
35          --with-freetype \
36          --with-xpm \
37          --enable-exif \
38          --with-zip \
39          --with-zlib \
40          --enable-soap \
41          --enable-xmlreader \
42          --with-xsl \
43          ${{ inputs.skipSlow == 'false' && '--with-tidy' || '' }} \
44          --enable-sysvsem \
45          --enable-sysvshm \
46          --enable-shmop \
47          --enable-pcntl \
48          --without-readline --with-libedit \
49          --enable-mbstring \
50          --with-curl \
51          --with-gettext \
52          --enable-sockets \
53          --with-bz2 \
54          --with-openssl \
55          --with-gmp \
56          --enable-bcmath \
57          --enable-calendar \
58          --enable-ftp \
59          ${{ inputs.skipSlow == 'false' && '--with-enchant=/usr' || '' }} \
60          --enable-sysvmsg \
61          --with-ffi \
62          --enable-zend-test \
63          ${{ inputs.skipSlow == 'false' && '--enable-dl-test=shared' || '' }} \
64          ${{ inputs.skipSlow == 'false' && '--with-ldap' || '' }} \
65          ${{ inputs.skipSlow == 'false' && '--with-ldap-sasl' || '' }} \
66          --with-password-argon2 \
67          --with-mhash \
68          --with-sodium \
69          --enable-dba \
70          --with-cdb \
71          --enable-flatfile \
72          --enable-inifile \
73          --with-tcadb \
74          --with-lmdb \
75          --with-qdbm \
76          ${{ inputs.skipSlow == 'false' && '--with-snmp' || '' }} \
77          ${{ inputs.skipSlow == 'false' && '--with-unixODBC' || '' }} \
78          ${{ inputs.skipSlow == 'false' && '--with-pdo-odbc=unixODBC,/usr' || '' }} \
79          --with-config-file-path=/etc \
80          --with-config-file-scan-dir=/etc/php.d \
81          ${{ inputs.skipSlow == 'false' && '--with-pdo-firebird' || '' }} \
82          ${{ inputs.skipSlow == 'false' && '--with-pdo-dblib' || '' }} \
83          --enable-werror \
84          ${{ inputs.configurationParameters }}
85