Skip to content

Commit

Permalink
Build pg_probackup
Browse files Browse the repository at this point in the history
  • Loading branch information
postgres-dev committed Aug 10, 2023
1 parent d416d25 commit 63e7d38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
run: make install USE_PGXS=1
working-directory: ptrack
- name: Install Pg_probackup
run: make install-pg-probackup
run: make install-pg-probackup USE_PGXS=1 PG_CONFIG=$PREFIX/bin/pg_config top_srcdir=../postgres
working-directory: ptrack
# The sources are checked out by the root but ptrack tests need to write
# to the source tree
Expand Down
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ install-postgres:
$(MAKE) -s -j $(nproc) install && \
$(MAKE) -s -j $(nproc) -C contrib/ install

# Now when Postgres is built we can use PGXS for all remainig targets
USE_PGXS = 1
# Now when Postgres is built call all remainig targets with USE_PGXS=1

test-tap:
ifeq ($(TEST_MODE), legacy)
Expand All @@ -60,8 +59,10 @@ else
endif

pg_probackup_dir ?= $(CURDIR)/../pg_probackup
# Pg_probackup's Makefile uses top_srcdir when building via PGXS so set it when calling this target
install-pg-probackup:
$(MAKE) -j $(nproc) -C $(pg_probackup_dir) install
echo PATH=$PATH
$(MAKE) -j $(nproc) -C $(pg_probackup_dir) install USE_PGXS=$(USE_PGXS) PG_CONFIG=$(PG_CONFIG) top_srcdir=$(top_srcdir)

test-python:
env=PG_PROBACKUP_PTRACK=ON; \
Expand Down

0 comments on commit 63e7d38

Please sign in to comment.