Skip to content

Build PG17

Build PG17 #79

Workflow file for this run

name: Build
permissions: read-all
on:
push:
branches:
- main
tags:
- '**'
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
strategy:
max-parallel: 3
matrix:
pg-version: [11, 12, 13, 14, 15, 16, 17]
steps:
- id: install
run: |
sudo apt-get update
# Remove preinstalled Postgres because this will conflict with the version we actually want.
sudo apt-get remove -u postgresql\*
# Get the postgresql gpg key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7FCC7D46ACCC4CF8
# Setup the Postgres repositories
sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main ${{ matrix.postgresql_version }}" > /etc/apt/sources.list.d/pgdg.list'
sudo apt-get update
# Install build deps
sudo apt-get install -y postgresql-server-dev-${{ matrix.pg-version }}
- id: checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- id: make
run: make