Build PG17 #77
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
# 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" > /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 | |