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-curl \
47          --with-gettext \
48          --enable-sockets \
49          --with-bz2 \
50          --with-openssl \
51          --with-gmp \
52          --enable-bcmath \
53          --enable-calendar \
54          --enable-ftp \
55          ${{ inputs.skipSlow == 'false' && '--with-enchant=/usr' || '' }} \
56          --enable-sysvmsg \
57          --with-ffi \
58          --enable-zend-test \
59          ${{ inputs.skipSlow == 'false' && '--enable-dl-test=shared' || '' }} \
60          ${{ inputs.skipSlow == 'false' && '--with-ldap' || '' }} \
61          ${{ inputs.skipSlow == 'false' && '--with-ldap-sasl' || '' }} \
62          --with-password-argon2 \
63          --with-mhash \
64          --with-sodium \
65          --enable-dba \
66          --with-cdb \
67          --enable-flatfile \
68          --enable-inifile \
69          --with-tcadb \
70          --with-lmdb \
71          --with-qdbm \
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-firebird' || '' }} \
78          ${{ inputs.skipSlow == 'false' && '--with-pdo-dblib' || '' }} \
79          --enable-werror \
80          ${{ inputs.configurationParameters }}
81