Skip to content

Commit 55d381e

Browse files
committed
Fix macos build
1 parent 3e4f435 commit 55d381e

File tree

3 files changed

+78
-97
lines changed

3 files changed

+78
-97
lines changed

.github/workflows/linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
- '!.travis.yml'
1818
- '.github/workflows/linux.yml'
1919
jobs:
20-
unix:
20+
linux:
2121
runs-on: ${{ matrix.os }}
2222
strategy:
2323
fail-fast: false

.github/workflows/macos.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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'

.github/workflows/osx.yml

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)