-
Notifications
You must be signed in to change notification settings - Fork 18
58 lines (46 loc) · 1.2 KB
/
regr_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 on MacOS
on:
push:
branches: [ master ]
tags: [ REL_* ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: macos-latest
defaults:
run:
shell: sh
steps:
- uses: actions/checkout@v3
- name: start pg
run: |
brew services start postgresql
- name: install lua
run: |
brew install [email protected]
- name: lua environment
run: |
(echo LUA="/usr/local/opt/[email protected]/bin/lua"
echo LUAC="/usr/local/opt/[email protected]/bin/luac"
echo LUA_INCDIR="/usr/local/opt/[email protected]/include/lua"
echo LUALIB="-L/usr/local/opt/[email protected]/lib -llua"
) >>$GITHUB_ENV
- name: build
run:
make && sudo -E make install
- name: wait for pg
run: |
n=0
while ! pg_isready; do [ $(( n += 1 )) -gt 10 ] && exit 1; sleep $n; done
- name: test
run: |
time make installcheck
- name: build and test hstore
run: |
make -C hstore && sudo -E make -C hstore install && time make -C hstore installcheck
- name: show output
if: always()
run: |
cat regression.diffs || true
cat hstore/regression.diffs || true