CI: Add OS X build
This commit is contained in:
47
.github/workflows/build.yml
vendored
47
.github/workflows/build.yml
vendored
@@ -65,6 +65,53 @@ jobs:
|
|||||||
git ls-files -o|grep -v ^build/
|
git ls-files -o|grep -v ^build/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
osx:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
name: [osx-clang]
|
||||||
|
include:
|
||||||
|
- name: osx-clang
|
||||||
|
os: macos-latest
|
||||||
|
compiler: clang
|
||||||
|
steps:
|
||||||
|
- name: Install packages
|
||||||
|
run: |
|
||||||
|
# bison, flex, ncurses, texinfo, and unzip are in the base OS.
|
||||||
|
# berkeley-db, perl, python, curl, and jq are installed in the
|
||||||
|
# base image already.
|
||||||
|
brew install autoconf automake libtool cpanm
|
||||||
|
sudo cpanm install JSON
|
||||||
|
- name: Clone repository
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
- name: Build
|
||||||
|
env:
|
||||||
|
CC: ${{ matrix.compiler }}
|
||||||
|
MAKEVARS: ${{ matrix.makevars }}
|
||||||
|
CONFIGURE_OPTS: ${{ matrix.configureopts }}
|
||||||
|
run: |
|
||||||
|
/bin/sh ./autogen.sh
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
../configure --srcdir=`dirname "$PWD"` --disable-afs-support --enable-maintainer-mode --enable-developer $CONFIGURE_OPTS --prefix=$HOME/inst CFLAGS="-Wno-error=shadow -Wno-error=bad-function-cast -Wno-error=unused-function -Wno-error=unused-result -Wno-error=deprecated-declarations"
|
||||||
|
ulimit -c unlimited
|
||||||
|
make -j4
|
||||||
|
make check
|
||||||
|
make install
|
||||||
|
- name: Test logs
|
||||||
|
if: ${{ failure() }}
|
||||||
|
run: |
|
||||||
|
find build -name \*.trs|xargs grep -lw FAIL|sed -e 's/trs$/log/'|xargs cat
|
||||||
|
- name: distclean
|
||||||
|
run: |
|
||||||
|
cd build
|
||||||
|
make distclean
|
||||||
|
if [ "$(git ls-files -o|grep -v ^build/ | wc -l)" -ne 0 ]; then
|
||||||
|
echo "Files not removed by make distclean:"
|
||||||
|
git ls-files -o|grep -v ^build/
|
||||||
|
fi
|
||||||
|
|
||||||
windows:
|
windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
env:
|
env:
|
||||||
|
Reference in New Issue
Block a user