Skip to content

Commit

Permalink
Fix pg 14 and 15 build workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
artemgavrilov committed Apr 2, 2024
1 parent c54a605 commit 8398704
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/postgresql-14-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,13 @@ jobs:
sudo make USE_PGXS=1 install
working-directory: src/pg_stat_monitor

- name: Load pg_stat_monitor library and Restart Server
- name: Configure and Restart Server
run: |
export PATH="/usr/lib/postgresql/14/bin:$PATH"
pg_ctl -D /opt/pgsql/data -l logfile stop
echo "shared_preload_libraries = 'pg_stat_monitor'" >> \
/opt/pgsql/data/postgresql.conf
echo "compute_query_id = off" >> /opt/pgsql/data/postgresql.conf
pg_ctl -D /opt/pgsql/data -l logfile start
working-directory: src/pg_stat_monitor

Expand Down Expand Up @@ -128,9 +129,6 @@ jobs:
- name: Start Server installcheck-world tests
run: |
export PATH="/usr/lib/postgresql/14/bin:$PATH"
pg_ctl -D /opt/pgsql/data -l logfile stop
echo "compute_query_id = off" >> /opt/pgsql/data/postgresql.conf
pg_ctl -D /opt/pgsql/data -l logfile start
make installcheck-world
- name: Report on installcheck-world test suites fail
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/postgresql-15-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,13 @@ jobs:
sudo make USE_PGXS=1 install
working-directory: src/pg_stat_monitor

- name: Load pg_stat_monitor library and Restart Server
- name: Configure and Restart Server
run: |
export PATH="/usr/lib/postgresql/15/bin:$PATH"
pg_ctl -D /opt/pgsql/data -l logfile stop
echo "shared_preload_libraries = 'pg_stat_monitor'" >> \
/opt/pgsql/data/postgresql.conf
echo "compute_query_id = off" >> /opt/pgsql/data/postgresql.conf
pg_ctl -D /opt/pgsql/data -l logfile start
working-directory: src/pg_stat_monitor

Expand Down Expand Up @@ -128,9 +129,6 @@ jobs:
- name: Start Server installcheck-world tests
run: |
export PATH="/usr/lib/postgresql/15/bin:$PATH"
pg_ctl -D /opt/pgsql/data -l logfile stop
echo "compute_query_id = off" >> /opt/pgsql/data/postgresql.conf
pg_ctl -D /opt/pgsql/data -l logfile start
make installcheck-world
- name: Report on installcheck-world test suites fail
Expand Down

0 comments on commit 8398704

Please sign in to comment.