Skip to content

Commit

Permalink
add some envs for postgis installation
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkAndshark committed Jan 23, 2025
1 parent 41ef278 commit 39a43c9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,20 @@ runs:
# Output version for next steps
echo "version=$PG_VERSION" >> $GITHUB_OUTPUT
- name: Setup PostgreSQL environment (macOS)
if: runner.os == 'macOS'
shell: bash
run: |
# Get PostgreSQL installation path using brew
PG_PREFIX=$(brew --prefix postgresql@${{ steps.pg-version-mac.outputs.version }})
echo "PostgreSQL prefix: $PG_PREFIX"
# Set environment variables
echo "PATH=$PG_PREFIX/bin:$PATH" >> $GITHUB_ENV
echo "LDFLAGS=-L$PG_PREFIX/lib" >> $GITHUB_ENV
echo "CPPFLAGS=-I$PG_PREFIX/include" >> $GITHUB_ENV
echo "PKG_CONFIG_PATH=$PG_PREFIX/lib/pkgconfig" >> $GITHUB_ENV
- name: Install PostGIS on macOS
if: runner.os == 'macOS'
shell: bash
Expand Down

0 comments on commit 39a43c9

Please sign in to comment.