From d9694cc3c55f5c596d98dfbd29907b320c8f76d5 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Fri, 8 Aug 2025 15:12:00 +0200 Subject: [PATCH] CI: Only test Postgres branch. --- .github/workflows/build.yml | 38 ++++++------------------------------- 1 file changed, 6 insertions(+), 32 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4e4703ac740..b590b3b7ba5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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