From: Daniele Varrazzo Date: Sat, 28 Sep 2024 16:50:23 +0000 (+0200) Subject: ci(macos): fix dylib path for postgres 17 from brew X-Git-Tag: 3.2.3~1^2~2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=17e8d85f695947ef3421ff4c596100124fa2c8c1;p=thirdparty%2Fpsycopg.git ci(macos): fix dylib path for postgres 17 from brew Libraries are now installed under `lib/postgresql/` under the brew package directory instead of just `lib`. --- diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ea96993e5..d19ae7e5b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 @@ -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' }}