From 3cc0ffe220bce372040a42b42bf3d22157f775eb Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Fri, 8 Aug 2025 15:33:30 +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 72b49faa683..4c80f96a7bc 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-v14' - - - name: Build PostgreSQL and Neon Extension - run: | - make -s -j`nproc` -C ./neon -s neon-pg-ext-v14 - - name: Run PostgreSQL Test Suite - run: | - make -s -j`nproc` -C ./neon/build/v14 check - - - name: Append Postgres binaries to the PATH + - name: Configure Postgres build run: | - echo "./neon/pg_install/v14/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