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