Skip to content

Commit 185fb6f

Browse files
authored
CI: Only test Postgres branch. (#726)
1 parent 3628a0b commit 185fb6f

File tree

1 file changed

+6
-32
lines changed

1 file changed

+6
-32
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -17,43 +17,17 @@ jobs:
1717
run: |
1818
sudo apt-get install build-essential coreutils libreadline-dev zlib1g-dev flex bison libxml2-dev libxslt-dev libssl-dev libxml2-utils xsltproc git
1919
20-
- name: Install Neon Build Dependencies
21-
run: |
22-
sudo apt install libtool libseccomp-dev clang pkg-config cmake postgresql-client protobuf-compiler libprotobuf-dev libcurl4-openssl-dev openssl libicu-dev
23-
24-
- name: Checkout Neon main branch
25-
run: |
26-
git clone https://github.com/neondatabase/neon ./neon
27-
2820
- name: Checkout postgres repository
2921
uses: actions/checkout@v4
30-
with:
31-
path: './neon/vendor/postgres-v14'
32-
33-
- name: Build PostgreSQL and Neon Extension
34-
run: |
35-
make -s -j`nproc` -C ./neon -s neon-pg-ext-v14
3622

37-
- name: Run PostgreSQL Test Suite
38-
run: |
39-
make -s -j`nproc` -C ./neon/build/v14 check
40-
41-
- name: Append Postgres binaries to the PATH
23+
- name: Configure Postgres build
4224
run: |
43-
echo "./neon/pg_install/v14/bin" >> "$GITHUB_PATH"
25+
./configure --prefix=/usr/local/bin
4426
45-
- name: Start Postgres
27+
- name: Build PostgreSQL
4628
run: |
47-
pg_ctl init --pgdata ./data
48-
pg_ctl start --pgdata ./data -o '-c shared_preload_libraries=neon'
29+
make -s -j`nproc`
4930
50-
- name: Create Extension Neon
51-
env:
52-
PGHOST: /tmp
53-
PGDATABASE: postgres
54-
run: |
55-
psql --echo-queries --command 'create extension neon;'
56-
57-
- name: Stop Postgres
31+
- name: Run PostgreSQL Test Suite
5832
run: |
59-
pg_ctl stop --pgdata ./data
33+
make -s -j`nproc` check

0 commit comments

Comments
 (0)