Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 6 additions & 32 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,43 +17,17 @@ jobs:
run: |
sudo apt-get install build-essential coreutils libreadline-dev zlib1g-dev flex bison libxml2-dev libxslt-dev libssl-dev libxml2-utils xsltproc git

- name: Install Neon Build Dependencies
run: |
sudo apt install libtool libseccomp-dev clang pkg-config cmake postgresql-client protobuf-compiler libprotobuf-dev libcurl4-openssl-dev openssl libicu-dev

- name: Checkout Neon main branch
run: |
git clone https://github.com/neondatabase/neon ./neon

- name: Checkout postgres repository
uses: actions/checkout@v4
with:
path: './neon/vendor/postgres-v17'

- name: Build PostgreSQL and Neon Extension
run: |
make -s -j`nproc` -C ./neon -s neon-pg-ext-v17

- name: Run PostgreSQL Test Suite
run: |
make -s -j`nproc` -C ./neon/build/v17 check

- name: Append Postgres binaries to the PATH
- name: Configure Postgres build
run: |
echo "./neon/pg_install/v17/bin" >> "$GITHUB_PATH"
./configure --prefix=/usr/local/bin

- name: Start Postgres
- name: Build PostgreSQL
run: |
pg_ctl init --pgdata ./data
pg_ctl start --pgdata ./data -o '-c shared_preload_libraries=neon'
make -s -j`nproc`

- name: Create Extension Neon
env:
PGHOST: /tmp
PGDATABASE: postgres
run: |
psql --echo-queries --command 'create extension neon;'

- name: Stop Postgres
- name: Run PostgreSQL Test Suite
run: |
pg_ctl stop --pgdata ./data
make -s -j`nproc` check