Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk committed Sep 11, 2024
1 parent 10950ad commit 5d63dba
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/actions/setup-postgres-windows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,30 @@ runs:
--params "/Password:password" \
--ia "--enable-components server,commandlinetools --extract-only 1" \
--no-progress
cat "C:\Users\runneradmin\AppData\Local\Temp\chocolatey\install-postgresql.log"
PG_BINDIR=$("$PROGRAMFILES/PostgreSQL/16/bin/pg_config.exe" --bindir)
PG_LIBDIR=$("$PROGRAMFILES/PostgreSQL/16/bin/pg_config.exe" --libdir)
echo $PG_BINDIR
echo $PQ_LIB_DIR
echo "PG_BINDIR:$PG_BINDIR"
echo "PG_LIBDIR:$PG_LIBDIR"
echo "$PG_BINDIR" >> $GITHUB_PATH
echo "PQ_LIB_DIR=$PG_LIBDIR" >> $GITHUB_ENV
PGBIN="%ProgramFiles%\PostgreSQL\16\bin"
PGBIN=PG_BINDIR
PGROOT="%ProgramFiles%\PostgreSQL\16"
PGDATA="%ProgramFiles%\PostgreSQL\16\data"
echo "PGBIN=$PGBIN" >> $GITHUB_ENV
echo "PGROOT=$PGROOT" >> $GITHUB_ENV
echo "PGDATA=$PGDATA" >> $GITHUB_ENV
ls $PG_BINDIR
echo "listing contents of PGROOT: $PGROOT"
ls $PGROOT
echo "registering service using $PGBIN\pg_ctl.exe"
"$PGBIN\pg_ctl.exe" register -N "postgresql16" -D "%ProgramData%/db_data" -S auto
"$PGBIN\pg_ctl.exe" register -N "postgresql16" -D "%ProgramData%\data" -S auto
"$PGBIN\initdb.exe -D "%ProgramFiles%\PostgreSQL\16\data"
"$PGBIN\pg_ctl.exe restart -D "%ProgramFiles%\PostgreSQL\16\data"
- shell: pwsh
run: |
# $pgService = Get-Service -Name postgresql16
Expand Down

0 comments on commit 5d63dba

Please sign in to comment.