File tree Expand file tree Collapse file tree 3 files changed +78
-97
lines changed Expand file tree Collapse file tree 3 files changed +78
-97
lines changed Original file line number Diff line number Diff line change 17
17
- ' !.travis.yml'
18
18
- ' .github/workflows/linux.yml'
19
19
jobs :
20
- unix :
20
+ linux :
21
21
runs-on : ${{ matrix.os }}
22
22
strategy :
23
23
fail-fast : false
Original file line number Diff line number Diff line change
1
+ name : MacOS Build
2
+ on :
3
+ push :
4
+ branches :
5
+ - ' master'
6
+ paths :
7
+ - ' !docs/**'
8
+ - ' !**.md'
9
+ - ' !appveyor.yml'
10
+ - ' !.travis.yml'
11
+ - ' .github/workflows/macos.yml'
12
+ pull_request :
13
+ paths :
14
+ - ' !docs/**'
15
+ - ' !**.md'
16
+ - ' !appveyor.yml'
17
+ - ' !.travis.yml'
18
+ - ' .github/workflows/macos.yml'
19
+ jobs :
20
+ macos :
21
+ runs-on : ${{ matrix.os }}
22
+ strategy :
23
+ fail-fast : false
24
+ matrix :
25
+ name : [macos-12-clang, macos-13-clang]
26
+ include :
27
+ - name : macos-12-clang
28
+ os : macos-12
29
+ compiler : clang
30
+ - name : macos-13-clang
31
+ os : macos-13
32
+ compiler : clang
33
+ steps :
34
+ - name : Clone repository
35
+ uses : actions/checkout@v1
36
+ - name : Open Submodule(s)
37
+ run : |
38
+ git submodule update --init --recursive
39
+ - name : Install packages
40
+ run : |
41
+ uname -s
42
+ brew update
43
+ brew install autoconf automake libtool flex bison python3
44
+ sed -i.bak '/^AM_INIT_AUTOMAKE(\[-Wno-portability 1\.14\])$/s/14/11/' modules/oniguruma/configure.ac
45
+ - name : Build
46
+ env :
47
+ CC : ${{ matrix.compiler }}
48
+ MAKEVARS : ${{ matrix.makevars }}
49
+ run : |
50
+ autoreconf -fi
51
+ rm src/lexer.c src/lexer.h
52
+ rm src/parser.c src/parser.h
53
+ ./configure --disable-valgrind --with-oniguruma=builtin YACC="$(brew --prefix)/opt/bison/bin/bison -y" $COVERAGE
54
+ make -j4
55
+ make dist
56
+ - name : Test
57
+ env :
58
+ CC : ${{ matrix.compiler }}
59
+ MAKEVARS : ${{ matrix.makevars }}
60
+ run : |
61
+ ulimit -c unlimited
62
+ make -j4 check
63
+ - name : Test logs
64
+ if : ${{ failure() }}
65
+ run : |
66
+ cat test-suite.log
67
+ cat tests/*.log
68
+ - name : Upload Install Tarball
69
+ uses : actions/upload-artifact@v2
70
+ with :
71
+ name : Install Tarball
72
+ path : ' ~/jq-install-osx-${{ matrix.compiler }}.tgz'
73
+ - name : Upload Logs Tarball
74
+ uses : actions/upload-artifact@v2
75
+ with :
76
+ name : Test Logs
77
+ path : ' ~/logs-osx-${{ matrix.compiler }}.tgz'
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments