43
43
build : pnpm build
44
44
setup : |
45
45
brew install autoconf automake libtool re2c bison libiconv \
46
- argon2 libzip
46
+ argon2 libzip postgresql@16
47
47
48
48
# TODO: Do we need to care about x86_64 macOS?
49
49
# NOTE: Unable to force link bison on macOS 13, which php-src requires.
53
53
build : pnpm build
54
54
setup : |
55
55
brew install autoconf automake libtool re2c bison libiconv \
56
- argon2 libzip
56
+ argon2 libzip postgresql@16
57
57
58
58
#
59
59
# Linux
71
71
libcurl4-openssl-dev autoconf libxml2-dev libsqlite3-dev \
72
72
bison re2c libonig-dev patchelf zlib1g-dev openssh-client git \
73
73
libclang-dev libreadline-dev libpng-dev libjpeg-dev libzip-dev \
74
- libsodium-dev libargon2-dev
74
+ libsodium-dev libargon2-dev libpq-dev
75
75
76
76
# TODO: Can't use the musl container, need to build with ssh-agent access.
77
77
# TODO: Fails because missing x86_64-linux-musl-gcc
@@ -161,6 +161,7 @@ jobs:
161
161
export PATH="$(brew --prefix bison)/bin:$PATH"
162
162
export LDFLAGS="$LDFLAGS -L$(brew --prefix bison)/lib"
163
163
export CPPFLAGS="$CPPFLAGS -I$(brew --prefix bison)/include"
164
+ export PKG_CONFIG_PATH="$(brew --prefix postgresql@16)/lib/pkgconfig"
164
165
fi
165
166
166
167
cd php-src
@@ -176,6 +177,7 @@ jobs:
176
177
--enable-zts \
177
178
--enable-mysqlnd --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd \
178
179
--with-pdo-sqlite=/usr --with-sqlite3=/usr \
180
+ --with-pdo-pgsql --with-pgsql \
179
181
--with-openssl --with-password-argon2 --with-sodium=shared \
180
182
--with-curl \
181
183
--enable-mbstring --with-mhash \
@@ -226,6 +228,7 @@ jobs:
226
228
--enable-zts \
227
229
--enable-mysqlnd --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd \
228
230
--with-pdo-sqlite=/usr --with-sqlite3=/usr \
231
+ --with-pdo-pgsql=/usr --with-pgsql=/usr \
229
232
--with-openssl --with-password-argon2 --with-sodium=shared \
230
233
--with-curl \
231
234
--enable-mbstring --with-mhash \
@@ -303,12 +306,12 @@ jobs:
303
306
target : x86_64-apple-darwin
304
307
architecture : x64
305
308
setup : |
306
- brew install openssl@3 argon2
309
+ brew install openssl@3 argon2 postgresql@16
307
310
- host : macos-15
308
311
target : aarch64-apple-darwin
309
312
architecture : arm64
310
313
setup : |
311
- brew install openssl@3 argon2 libzip
314
+ brew install openssl@3 argon2 libzip postgresql@16
312
315
# - host: windows-latest
313
316
# target: x86_64-pc-windows-msvc
314
317
# architecture: x64
@@ -428,7 +431,7 @@ jobs:
428
431
libcurl4-openssl-dev autoconf libxml2-dev libsqlite3-dev \
429
432
bison re2c libonig-dev libargon2-dev libzip-dev zlib1g-dev \
430
433
openssh-client libclang-dev libreadline-dev libpng-dev \
431
- libjpeg-dev libsodium-dev
434
+ libjpeg-dev libsodium-dev libpq5
432
435
433
436
npm run test
434
437
0 commit comments