forked from pgRouting/GSoC-pgRouting
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (46 loc) · 1.38 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
name: Build for macOS
# manually triggered workflow
# - macOS test takes too much time
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
name: macos
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: install deps
run: |
brew install postgresql postgis boost
- name: Configure
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DWITH_DOC=OFF ..
- name: Build
run: |
cd build
make -j
sudo make install
- name: Install pgTAP
run: |
git clone https://github.com/theory/pgtap.git pgTapExtension
cd pgTapExtension
make -j
sudo make install
sudo cpan TAP::Parser::SourceHandler::pgTAP
sudo find /usr/local -name pg_prove
sudo ln -s /usr/local/Cellar/perl/5.32.1_1/bin/pg_prove symlink it into /usr/local/bin
- name: Test
run: |
export PATH=/usr/local/Cellar/perl/$(perl -e 'print substr($^V, 1)')/bin:$PATH
pg_ctl -D /usr/local/var/postgres start
createuser -s postgres
createdb ___pgr___test___
bash ./tools/testers/pg_prove_tests.sh postgres 5432 Release