Skip to content

Commit d0c4db2

Browse files
committed
actions: work around broken macos postgresql
Homebrew started distributing versioned postgresql packages with a non-standard directory layout that breaks cmake's scripts for finding postgresql. Work around the issue. See actions/runner-images#6176.
1 parent 08d1e1c commit d0c4db2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ jobs:
1616
run: |
1717
brew install lua boost postgis pandoc
1818
pip3 install psycopg2 behave
19+
pg_ctl -D /usr/local/var/postgres init
1920
pg_ctl -D /usr/local/var/postgres start
21+
# Work around homebrew postgresql installation screw-up, see
22+
# https://github.com/actions/runner-images/issues/6176
23+
ln -s $(pg_config --libdir)/* /usr/local/lib/ || true
24+
ln -s $(pg_config --includedir)/* /usr/local/include/
2025
shell: bash
2126

2227
- name: Setup database

0 commit comments

Comments
 (0)