Add tests for Postgres 16 on macos #211
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: test-linux | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
linux: | |
strategy: | |
matrix: | |
config: [Release, Debug] | |
pg: [16, 15, 14, 13, 12, 11] | |
runs-on: ubuntu-22.04 | |
name: linux 🐘${{ matrix.pg }} (${{ matrix.config }}) | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache Cargo | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cargo | |
key: ${{ runner.os }}-cargo-2023 | |
- name: Install pg_validate_extupgrade | |
run: cargo install --locked --git https://github.com/rjuju/pg_validate_extupgrade.git | |
- name: Setup PostgreSQL ${{ matrix.pg }} | |
run: | | |
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -p -i -v ${{ matrix.pg }} | |
sudo apt-get -y install postgresql-${{ matrix.pg }}-postgis-3 | |
sudo -u postgres -i createuser --superuser runner | |
sudo -u postgres -i createdb runner | |
psql -c "CREATE EXTENSION postgis; CREATE EXTENSION postgis_raster;" | |
- name: Generate | |
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.config }} | |
- name: Build | |
run: cmake --build build | |
- name: Install | |
run: sudo cmake --install build --component h3-pg | |
- name: Test | |
env: | |
PGHOST: /var/run/postgresql | |
run: ctest --test-dir build --output-on-failure --build-config ${{ matrix.config }} | |
- name: Print regression diffs | |
if: ${{ failure() }} | |
run: cat build/*/test/regression.diffs |