-
-
Notifications
You must be signed in to change notification settings - Fork 36
41 lines (31 loc) · 901 Bytes
/
pgxn.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: pgxn
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
pgxn:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install PGXN Client
run: sudo pip install pgxnclient
- name: Install PostgreSQL server dependencies
run: |
sudo apt-get update
sudo apt-get install postgresql-server-dev-14 postgis
- name: Prepare PostgreSQL
run: |
sudo systemctl start postgresql.service
sudo -u postgres -i createuser --superuser runner
sudo -u postgres -i createdb runner
psql -c "CREATE EXTENSION postgis; CREATE EXTENSION postgis_raster;"
- name: Bundle
run: scripts/bundle
- name: Install
run: sudo pgxn install ./h3-*.zip
- name: Load
run: pgxn load h3
- name: Check
run: pgxn check h3