Skip to content

Commit

Permalink
ci(macos): fix dylib path for postgres 17 from brew
Browse files Browse the repository at this point in the history
Libraries are now installed under `lib/postgresql/` under the brew
package directory instead of just `lib`.
  • Loading branch information
dvarrazzo committed Sep 29, 2024
1 parent d066132 commit 17e8d85
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ jobs:
- name: Configure memory alignment tests
if: ${{ matrix.ext == 'align' }}
run: |
echo "CFLAGS=-fsanitize=undefined -Werror=strict-aliasing -Werror=odr -Werror=lto-type-mismatch" >> $GITHUB_ENV
echo "CFLAGS=-fsanitize=undefined -Werror=strict-aliasing -Werror=odr -Werror=lto-type-mismatch"
>> $GITHUB_ENV
echo "UBSAN_OPTIONS=halt_on_error=1" >> $GITHUB_ENV
echo "PYTEST_ADDOPTS=-v" >> $GITHUB_ENV
Expand Down Expand Up @@ -189,8 +190,12 @@ jobs:

- name: Find the libpq
if: ${{ matrix.impl == 'python' }}
# NOTE: the libpq was found in:
# /opt/homebrew/opt/postgresql@${PG_VERSION}/lib before PG 17
# /opt/homebrew/opt/postgresql@${PG_VERSION}/lib/postgresql on PG 17
run: |
echo "DYLD_LIBRARY_PATH=/opt/homebrew/opt/postgresql@${PG_VERSION}/lib:$DYLD_LIBRARY_PATH" >> $GITHUB_ENV
echo "DYLD_LIBRARY_PATH=/opt/homebrew/opt/postgresql@${PG_VERSION}/lib/postgresql:/opt/homebrew/opt/postgresql@${PG_VERSION}/lib:$DYLD_LIBRARY_PATH" \
>> $GITHUB_ENV
- name: Include psycopg-c to the packages to install
if: ${{ matrix.impl == 'c' }}
Expand Down

0 comments on commit 17e8d85

Please sign in to comment.