Skip to content

Commit

Permalink
Try to activate PostGIS 3 support with PostgreSQL 16
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Sep 19, 2023
1 parent d09d45f commit 0710a1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
10 changes: 1 addition & 9 deletions .github/scripts/postgresql_postgis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,7 @@
set -e

curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null

if [[ $POSTGRESQL_VERSION == *12* ]];
then
echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main $POSTGRESQL_VERSION" |sudo tee /etc/apt/sources.list.d/pgdg.list
echo "Using main repo"
else
echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg-snapshot main $POSTGRESQL_VERSION" |sudo tee /etc/apt/sources.list.d/pgdg.list
echo "Using snapshot report for$POSTGRESQL_VERSION"
fi
echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main $POSTGRESQL_VERSION" |sudo tee /etc/apt/sources.list.d/pgdg.list

# RAISE priority of pgdg
cat << EOF >> ./pgdg.pref
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "[ubuntu-22.04] PostgreSQL 16"
name: "[ubuntu-22.04] PostgreSQL 16 and PostGIS 3.3"

on:
push:
Expand All @@ -17,7 +17,7 @@ jobs:
- name: Install PostgreSQL
env:
POSTGRESQL_VERSION: 16
# POSTGIS_VERSION: 3
POSTGIS_VERSION: 3
run: .github/scripts/postgresql_postgis.sh
- name: Install and check PgPointCloud
run: .github/scripts/pgpointcloud.sh
Expand Down

0 comments on commit 0710a1b

Please sign in to comment.