1name: ./configure
2inputs:
3  configurationParameters:
4    default: ''
5    required: false
6runs:
7  using: composite
8  steps:
9    - shell: bash
10      run: |
11        set -x
12        export PATH="/usr/local/opt/bison/bin:$PATH"
13        export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/openssl@1.1/lib/pkgconfig"
14        export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/krb5/lib/pkgconfig"
15        export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/libffi/lib/pkgconfig"
16        export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/libxml2/lib/pkgconfig"
17        export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/libxslt/lib/pkgconfig"
18        export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/zlib/lib/pkgconfig"
19        export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/icu4c/lib/pkgconfig"
20        ./buildconf --force
21        ./configure \
22          --enable-option-checking=fatal \
23          --prefix=/usr/local \
24          --enable-fpm \
25          --with-pdo-mysql=mysqlnd \
26          --with-mysqli=mysqlnd \
27          --with-pgsql=/usr/local/opt/libpq \
28          --with-pdo-pgsql=/usr/local/opt/libpq \
29          --with-pdo-sqlite \
30          --without-pear \
31          --enable-gd \
32          --with-jpeg \
33          --with-webp \
34          --with-freetype \
35          --enable-exif \
36          --with-zip \
37          --with-zlib \
38          --enable-soap \
39          --enable-xmlreader \
40          --with-xsl \
41          --with-tidy=/usr/local/opt/tidy-html5 \
42          --with-libxml \
43          --enable-sysvsem \
44          --enable-sysvshm \
45          --enable-shmop \
46          --enable-pcntl \
47          --with-readline=/usr/local/opt/readline \
48          --enable-mbstring \
49          --with-curl \
50          --with-gettext=/usr/local/opt/gettext \
51          --enable-sockets \
52          --with-bz2=/usr/local/opt/bzip2 \
53          --with-openssl \
54          --with-gmp=/usr/local/opt/gmp \
55          --with-iconv=/usr/local/opt/libiconv \
56          --enable-bcmath \
57          --enable-calendar \
58          --enable-ftp \
59          --with-pspell=/usr/local/opt/aspell \
60          --with-kerberos \
61          --enable-sysvmsg \
62          --with-ffi \
63          --enable-zend-test \
64          --enable-intl \
65          --with-mhash \
66          --with-sodium \
67          --enable-dba \
68          --enable-werror \
69          --with-config-file-path=/etc \
70          --with-config-file-scan-dir=/etc/php.d \
71          ${{ inputs.configurationParameters }}
72