1
1
name : ./configure
2
2
inputs :
3
- configuration-parameters :
3
+ configurationParameters :
4
+ default : ' '
4
5
required : false
5
6
runs :
6
7
using : composite
7
8
steps :
8
9
- shell : bash
9
10
run : |
11
+ if [ "$ARCH" == "linux-x64" ]; then
12
+ ./buildconf --force
13
+ ./configure \
14
+ --enable-option-checking=fatal \
15
+ --prefix=/usr \
16
+ --enable-phpdbg \
17
+ --enable-fpm \
18
+ --with-pdo-mysql=mysqlnd \
19
+ --with-mysqli=mysqlnd \
20
+ --with-pgsql \
21
+ --with-pdo-pgsql \
22
+ --with-pdo-sqlite \
23
+ --enable-intl \
24
+ --without-pear \
25
+ --enable-gd \
26
+ --with-jpeg \
27
+ --with-webp \
28
+ --with-freetype \
29
+ --with-xpm \
30
+ --enable-exif \
31
+ --with-zip \
32
+ --with-zlib \
33
+ --with-zlib-dir=/usr \
34
+ --enable-soap \
35
+ --enable-xmlreader \
36
+ --with-xsl \
37
+ --with-tidy \
38
+ --enable-sysvsem \
39
+ --enable-sysvshm \
40
+ --enable-shmop \
41
+ --enable-pcntl \
42
+ --with-readline \
43
+ --enable-mbstring \
44
+ --with-curl \
45
+ --with-gettext \
46
+ --enable-sockets \
47
+ --with-bz2 \
48
+ --with-openssl \
49
+ --with-gmp \
50
+ --enable-bcmath \
51
+ --enable-calendar \
52
+ --enable-ftp \
53
+ --with-pspell=/usr \
54
+ --with-enchant=/usr \
55
+ --with-kerberos \
56
+ --enable-sysvmsg \
57
+ --with-ffi \
58
+ --enable-zend-test \
59
+ --with-ldap \
60
+ --with-ldap-sasl \
61
+ --with-password-argon2 \
62
+ --with-mhash \
63
+ --with-sodium \
64
+ --enable-dba \
65
+ --with-cdb \
66
+ --enable-flatfile \
67
+ --enable-inifile \
68
+ --with-tcadb \
69
+ --with-lmdb \
70
+ --with-qdbm \
71
+ --with-snmp \
72
+ --with-unixODBC \
73
+ --with-imap \
74
+ --with-kerberos \
75
+ --with-imap-ssl \
76
+ --with-pdo-odbc=unixODBC,/usr \
77
+ --with-pdo-firebird \
78
+ --with-pdo-dblib \
79
+ --with-pdo-oci=shared,instantclient,/opt/oracle/instantclient \
80
+ --with-oci8=shared,instantclient,/opt/oracle/instantclient \
81
+ --enable-werror \
82
+ --with-config-file-path=/etc \
83
+ --with-config-file-scan-dir=/etc/php.d \
84
+ ${{ inputs.configurationParameters }}
85
+ fi
86
+ if [ "$ARCH" == "linux-i386" ]; then
87
+ ./buildconf --force
88
+ export CFLAGS="-m32 -msse2"
89
+ export CXXFLAGS="-m32 -msse2"
90
+ export LDFLAGS=-L/usr/lib/i386-linux-gnu
91
+ export PKG_CONFIG=/usr/bin/i686-linux-gnu-pkg-config
92
+ ./configure \
93
+ --enable-option-checking=fatal \
94
+ --build=i686-pc-linux-gnu \
95
+ --prefix=/usr \
96
+ --enable-phpdbg \
97
+ --enable-fpm \
98
+ --enable-intl \
99
+ --with-pdo-mysql=mysqlnd \
100
+ --with-mysqli=mysqlnd \
101
+ --with-pgsql \
102
+ --with-pdo-pgsql \
103
+ --with-pdo-sqlite \
104
+ --without-pear \
105
+ --enable-gd \
106
+ --with-jpeg \
107
+ --with-webp \
108
+ --with-freetype \
109
+ --with-xpm \
110
+ --enable-exif \
111
+ --with-zip \
112
+ --with-zlib \
113
+ --with-zlib-dir=/usr \
114
+ --enable-soap \
115
+ --enable-xmlreader \
116
+ --with-xsl \
117
+ --with-tidy \
118
+ --enable-sysvsem \
119
+ --enable-sysvshm \
120
+ --enable-shmop \
121
+ --enable-pcntl \
122
+ --with-readline \
123
+ --enable-mbstring \
124
+ --with-curl \
125
+ --with-gettext \
126
+ --enable-sockets \
127
+ --with-bz2 \
128
+ --with-openssl \
129
+ --with-gmp \
130
+ --enable-bcmath \
131
+ --enable-calendar \
132
+ --enable-ftp \
133
+ --with-pspell=/usr \
134
+ --with-kerberos \
135
+ --enable-sysvmsg \
136
+ --with-ffi \
137
+ --enable-zend-test \
138
+ --with-mhash \
139
+ --with-sodium \
140
+ --enable-dba \
141
+ --enable-werror \
142
+ --with-config-file-path=/etc \
143
+ --with-config-file-scan-dir=/etc/php.d \
144
+ ${{ inputs.configurationParameters }}
145
+ fi
10
146
if [ "$ARCH" == "macos" ]; then
11
147
export PATH="/usr/local/opt/bison/bin:$PATH"
12
148
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/[email protected] /lib/pkgconfig"
@@ -16,103 +152,56 @@ runs:
16
152
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/libxslt/lib/pkgconfig"
17
153
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/zlib/lib/pkgconfig"
18
154
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/icu4c/lib/pkgconfig"
155
+ ./buildconf --force
156
+ ./configure \
157
+ --enable-option-checking=fatal \
158
+ --prefix=/usr/local \
159
+ --enable-fpm \
160
+ --with-pdo-mysql=mysqlnd \
161
+ --with-mysqli=mysqlnd \
162
+ --with-pgsql=/usr/local/opt/libpq \
163
+ --with-pdo-pgsql=/usr/local/opt/libpq \
164
+ --with-pdo-sqlite \
165
+ --without-pear \
166
+ --enable-gd \
167
+ --with-jpeg \
168
+ --with-webp \
169
+ --with-freetype \
170
+ --enable-exif \
171
+ --with-zip \
172
+ --with-zlib \
173
+ --enable-soap \
174
+ --enable-xmlreader \
175
+ --with-xsl \
176
+ --with-tidy=/usr/local/opt/tidyp \
177
+ --with-libxml \
178
+ --enable-sysvsem \
179
+ --enable-sysvshm \
180
+ --enable-shmop \
181
+ --enable-pcntl \
182
+ --with-readline=/usr/local/opt/readline \
183
+ --enable-mbstring \
184
+ --with-curl \
185
+ --with-gettext=/usr/local/opt/gettext \
186
+ --enable-sockets \
187
+ --with-bz2=/usr/local/opt/bzip2 \
188
+ --with-openssl \
189
+ --with-gmp=/usr/local/opt/gmp \
190
+ --with-iconv=/usr/local/opt/libiconv \
191
+ --enable-bcmath \
192
+ --enable-calendar \
193
+ --enable-ftp \
194
+ --with-pspell=/usr/local/opt/aspell \
195
+ --with-kerberos \
196
+ --enable-sysvmsg \
197
+ --with-ffi \
198
+ --enable-zend-test \
199
+ --enable-intl \
200
+ --with-mhash \
201
+ --with-sodium \
202
+ --enable-dba \
203
+ --enable-werror \
204
+ --with-config-file-path=/etc \
205
+ --with-config-file-scan-dir=/etc/php.d \
206
+ ${{ inputs.configurationParameters }}
19
207
fi
20
-
21
- ./buildconf --force
22
-
23
- configureParameters=(
24
- --enable-bcmath
25
- --enable-calendar
26
- --enable-dba
27
- --enable-exif
28
- --enable-fpm
29
- --enable-ftp
30
- --enable-gd
31
- --enable-intl
32
- --enable-mbstring
33
- --enable-option-checking=fatal
34
- --enable-pcntl
35
- --enable-shmop
36
- --enable-soap
37
- --enable-sockets
38
- --enable-sysvmsg
39
- --enable-sysvsem
40
- --enable-sysvshm
41
- --enable-werror
42
- --enable-xmlreader
43
- --enable-zend-test
44
- --prefix=${{ env.arch != 'macos' && '/usr' || '/usr/local' || '' }}
45
- --with-zip
46
- --with-bz2${{ env.arch == 'macos' && '=/usr/local/opt/bzip2' || '' }}
47
- --with-config-file-path=/etc
48
- --with-config-file-scan-dir=/etc/php.d
49
- --with-curl
50
- --with-ffi
51
- --with-freetype
52
- --with-gettext${{ env.arch == 'macos' && '=/usr/local/opt/gettext' || '' }}
53
- --with-gmp${{ env.arch == 'macos' && '=/usr/local/opt/gmp' || '' }}
54
- --with-jpeg
55
- --with-kerberos
56
- --with-mhash
57
- --with-mysqli=mysqlnd
58
- --with-openssl
59
- --with-pdo-mysql=mysqlnd
60
- --with-pdo-pgsql${{ env.arch == 'macos' && '=/usr/local/opt/libpq' || '' }}
61
- --with-pdo-sqlite
62
- --with-pgsql${{ env.arch == 'macos' && '=/usr/local/opt/libpq' || '' }}
63
- --with-pspell=${{ env.arch != 'macos' && '/usr' || '/usr/local/opt/aspell' }}
64
- --with-readline${{ env.arch == 'macos' && '=/usr/local/opt/readline' || '' }}
65
- --with-sodium
66
- --with-tidy${{ env.arch == 'macos' && '=/usr/local/opt/tidyp' || '' }}
67
- --with-webp
68
- --with-xsl
69
- --with-zlib
70
- --without-pear
71
- ${{ inputs.configuration-parameters }}
72
- )
73
-
74
- if [ "$ARCH" == "linux-x64" ]; then
75
- configureParameters+=(
76
- --enable-flatfile
77
- --enable-inifile
78
- --with-cdb
79
- --with-enchant=/usr
80
- --with-imap
81
- --with-imap-ssl
82
- --with-kerberos
83
- --with-ldap
84
- --with-ldap-sasl
85
- --with-lmdb
86
- --with-oci8=shared,instantclient,/opt/oracle/instantclient
87
- --with-password-argon2
88
- --with-pdo-dblib
89
- --with-pdo-firebird
90
- --with-pdo-oci=shared,instantclient,/opt/oracle/instantclient
91
- --with-pdo-odbc=unixODBC,/usr
92
- --with-qdbm
93
- --with-snmp
94
- --with-tcadb
95
- --with-unixODBC
96
- )
97
- fi
98
-
99
- if [ "$ARCH" == "linux-i386" ]; then
100
- configureParameters+=(--build=i686-pc-linux-gnu)
101
- fi
102
-
103
- if [ "$ARCH" != "macos" ]; then
104
- configureParameters+=(
105
- --enable-phpdbg
106
- --with-xpm
107
- --with-zlib-dir=/usr
108
- )
109
- fi
110
-
111
- if [ "$ARCH" == "macos" ]; then
112
- configureParameters+=(
113
- --with-iconv=/usr/local/opt/libiconv
114
- --with-libxml
115
- )
116
- fi
117
-
118
- ./configure "${configureParameters[@]}"
0 commit comments