Skip to content

Commit

Permalink
Fix lib path
Browse files Browse the repository at this point in the history
  • Loading branch information
artemgavrilov committed Jan 23, 2024
1 parent ec099d8 commit d13da51
Showing 1 changed file with 16 additions and 24 deletions.
40 changes: 16 additions & 24 deletions .github/workflows/postgresql-16-src-make-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,32 @@ jobs:
run: |
brew install make autoconf openssl@3 curl json-c gettext icu4c
- name: Debug
run : |
ls /usr/local/opt/
ls /usr/local/opt/json-c/
ls /usr/local/opt/json-c/include
# - name: Clone postgres repository
# uses: actions/checkout@v4
# with:
# repository: 'postgres/postgres'
# ref: 'a81e5516fa4bc53e332cb35eefe231147c0e1749'
# path: 'src'
- name: Clone postgres repository
uses: actions/checkout@v4
with:
repository: 'postgres/postgres'
ref: 'a81e5516fa4bc53e332cb35eefe231147c0e1749'
path: 'src'

- name: Clone postgres-tde-ext repository
uses: actions/checkout@v2
with:
path: 'src/contrib/postgres-tde-ext'

# - name: Create pgsql dir
# run: mkdir -p $HOME/pgsql
- name: Create pgsql dir
run: mkdir -p $HOME/pgsql

# - name: Build postgres
# run: |
# export LDFLAGS="-L/usr/local/opt/icu4c/lib -L/usr/local/opt/openssl/lib"
# export CPPFLAGS="-I/usr/local/opt/icu4c/include -I/usr/local/opt/openssl/include"
# export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig"
# ./configure --with-openssl --enable-tap-tests=no --prefix=$HOME/postgres
# make -j
# sudo make install
# working-directory: src
- name: Build postgres
run: |
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig"
./configure --with-openssl --enable-tap-tests=no --prefix=$HOME/postgres
make -j
sudo make install
working-directory: src

- name: Build postgres-tde-ext
run: |
export LDFLAGS="-L/usr/local/opt/json-c/lib -ljson-c"
export LDFLAGS="-L/usr/local/opt/json-c/lib"
export CPPFLAGS="-I/usr/local/opt/json-c/include/json-c"
./configure
make -j
Expand Down

0 comments on commit d13da51

Please sign in to comment.