-
Notifications
You must be signed in to change notification settings - Fork 11
38 lines (36 loc) · 1.42 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
name: Mac OS
on:
push:
paths-ignore:
- 'doc/**'
- '.github/workflows/codeql.yml'
- '.github/workflows/build_and_test.yml'
- '.github/workflows/wsl.yml'
pull_request:
paths-ignore:
- 'doc/**'
- '.github/workflows/codeql.yml'
- '.github/workflows/build_and_test.yml'
- '.github/workflows/wsl.yml'
workflow_dispatch:
paths-ignore:
- 'doc/**'
- '.github/workflows/codeql.yml'
- '.github/workflows/build_and_test.yml'
- '.github/workflows/wsl.yml'
jobs:
build:
runs-on: macos-latest
steps:
- run: brew install postgresql
- run: brew install boost
- run: brew services start postgresql
- uses: actions/checkout@v4
- run: make && make tdkc && make install
- run: pg_isready -t 60 || (cat /usr/local/var/log/potgres*.log; false)
- run: echo "POSTGRESQL_CONFIG=$(psql -t -c 'SHOW config_file' postgres)" >> $GITHUB_ENV
- run: echo "shared_preload_libraries = 'provsql'" >> $POSTGRESQL_CONFIG
- run: brew services restart postgresql
- run: "perl -i -pe 's/ c2d//; s/ d4//; s/ weightmc//; s/ dsharp//; s/ view_circuit_multiple//; s/test: *$//' test/schedule"
- run: pg_isready -t 60 || (cat /usr/local/var/log/potgres*.log; false)
- run: make installcheck || bash -c "shopt -s nullglob; cat /tmp/tmp.provsql*/regression.diffs && for i in /tmp/provsql*; do echo $i && cat $i; done; false"