-
-
Notifications
You must be signed in to change notification settings - Fork 7
73 lines (60 loc) · 1.64 KB
/
macos.yml
File metadata and controls
73 lines (60 loc) · 1.64 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Build for macOS
on:
workflow_dispatch:
push:
paths:
- '.github/workflows/macos.yml'
- 'sql/**'
- 'pgtap/**'
- 'tools/testers/**'
- 'CMakeLists.txt'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
postgis: 3
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
release: [Debug, Release]
os: [macos-latest, macos-14]
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
brew install postgresql@14 postgis pgrouting
- name: Configure
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=${{ matrix.release }} ..
- name: Build
run: |
cd build
make -j
make install
- name: Install pgTAP
run: |
git clone https://github.com/theory/pgtap.git pgTapExtension
cd pgTapExtension
make -j
make install
cpan TAP::Parser::SourceHandler::pgTAP
ln -s $(find `brew --prefix` -name pg_prove) symlink it into $(brew --prefix)/bin
- name: Unpack data
run: |
cd tools/testers
tar -xf matrix_new_values.tar.gz
- name: Test
run: |
export PATH=$(brew --prefix)/Cellar/perl/$(perl -e 'print substr($^V, 1)')/bin:$PATH
pg_ctl -D $(brew --prefix)/var/postgresql@14 start
createuser -s postgres
createdb ___vrp___test___
bash ./tools/testers/pg_prove_tests.sh -U postgres -p 5432