Skip to content

Move back to httpbin.org #109

Move back to httpbin.org

Move back to httpbin.org #109

Workflow file for this run

# GitHub Actions for PostGIS
#
# Paul Ramsey <pramsey at cleverelephant dot ca>
name: "CI"
on: [push, pull_request]
jobs:
linux:
runs-on: ubuntu-latest
name: "CI"
strategy:
matrix:
ci:
- { PGVER: 12 }
- { PGVER: 13 }
- { PGVER: 14 }
- { PGVER: 15 }
- { PGVER: 16 }
steps:
- name: 'Check Out'
uses: actions/checkout@v3
- name: 'Install PostgreSQL'
run: |
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg-snapshot main ${{ matrix.ci.PGVER }}" > /etc/apt/sources.list.d/pgdg.list'
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null
sudo apt-get update
sudo apt-get -y install postgresql-${{ matrix.ci.PGVER }} postgresql-server-dev-${{ matrix.ci.PGVER }}
- name: 'Install Curl'
run: |
sudo apt-get -y install libcurl4-gnutls-dev
- name: 'Start PostgreSQL'
run: |
export PGDATA=/var/lib/postgresql/${{ matrix.ci.PGVER }}/main
export PGETC=/etc/postgresql/${{ matrix.ci.PGVER }}/main
export PGBIN=/usr/lib/postgresql/${{ matrix.ci.PGVER }}/bin
sudo cp ./ci/pg_hba.conf $PGETC/pg_hba.conf
sudo su postgres -c "$PGBIN/pg_ctl --pgdata $PGDATA start -o '-c config_file=$PGETC/postgresql.conf -p 5432'"
- name: 'Build & Test'
run: |
export PATH=/usr/lib/postgresql/${{ matrix.ci.PGVER }}/bin/:$PATH
export PG_CONFIG=/usr/lib/postgresql/${{ matrix.ci.PGVER }}/bin/pg_config
export PG_CFLAGS=-Werror
make
sudo -E make PG_CONFIG=$PG_CONFIG install
PGUSER=postgres make installcheck || (cat regression.diffs && /bin/false)