Skip to content

Commit cd977e3

Browse files
committed
fix: pg-query-extension GH wofkrlow
1 parent d3a51cd commit cd977e3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/job-pg-query-extension.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
if: runner.os == 'macOS'
3939
run: |
4040
brew install autoconf automake libtool protobuf protobuf-c
41+
echo "LDFLAGS=-L$(brew --prefix protobuf-c)/lib" >> $GITHUB_ENV
42+
echo "CPPFLAGS=-I$(brew --prefix protobuf-c)/include" >> $GITHUB_ENV
43+
echo "PKG_CONFIG_PATH=$(brew --prefix protobuf-c)/lib/pkgconfig" >> $GITHUB_ENV
4144
4245
- name: Build libpg_query and extension
4346
working-directory: src/extension/pg-query-ext
@@ -52,7 +55,9 @@ jobs:
5255
- name: Install extension
5356
working-directory: src/extension/pg-query-ext
5457
run: |
55-
sudo make install
58+
EXT_DIR=$(php -r 'echo ini_get("extension_dir");')
59+
sudo cp ext/modules/pg_query.so "$EXT_DIR/"
60+
echo "extension=pg_query.so" | sudo tee -a "$(php -r 'echo php_ini_loaded_file();')"
5661
php -m | grep pg_query
5762
5863
- name: Run pg-query library tests

0 commit comments

Comments
 (0)