forked from MobilityDB/MobilityDB
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (50 loc) · 1.19 KB
/
macos.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Build for macOS
on:
workflow_dispatch:
push:
paths:
- 'cmake/**'
- 'meos/**'
- 'mobilitydb/**'
- 'postgis/**'
- 'CMakeLists.txt'
branch_ignore: gh-pages
pull_request:
paths:
- 'cmake/**'
- 'meos/**'
- 'mobilitydb/**'
- 'postgis/**'
- 'CMakeLists.txt'
branch_ignore: gh-pages
jobs:
build:
name: Build
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: install deps
run: |
brew install postgresql postgis proj gsl
- name: Configure
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
- name: Build
run: |
cd build
make -j
sudo make install
- name: test install
run: |
mkdir /usr/local/var/postgres
initdb -D /usr/local/var/postgres
pg_ctl -D /usr/local/var/postgres start
createdb ___mobdb___test___
psql -d ___mobdb___test___ -c "CREATE EXTENSION mobilitydb CASCADE; SELECT mobilitydb_version();"
- name: Test
run: |
cd build
make test