Skip to content

Add the Cmake Infrastructure and base files #181

Add the Cmake Infrastructure and base files

Add the Cmake Infrastructure and base files #181

Workflow file for this run

name: PG14 Regression
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get latest commit id of PostgreSQL 14
run: |
echo "PG_COMMIT_HASH=$(git ls-remote git://git.postgresql.org/git/postgresql.git refs/heads/REL_14_STABLE | awk '{print $1}')" >> $GITHUB_ENV
- name: Cache PostgreSQL 14
uses: actions/cache@v2
id: pg14cache
with:
path: ~/pg14
key: ${{ runner.os }}-v1-pg14-${{ env.PG_COMMIT_HASH }}
- name: Install PostgreSQL 14
if: steps.pg14cache.outputs.cache-hit != 'true'
run: |
git clone --depth 1 --branch REL_14_STABLE git://git.postgresql.org/git/postgresql.git ~/pg14source
cd ~/pg14source
./configure --prefix=$HOME/pg14 CFLAGS="-std=gnu99 -ggdb -O0" --enable-cassert
make install -j$(nproc) > /dev/null
- uses: actions/checkout@v2
- name: Regression
run: |
export PG_CONFIG=$HOME/pg14/bin/pg_config
make -j$(nproc)
make install
make installcheck