Add musl builds.

pull/2195/head
Nicholas Marriott 2020-05-03 12:33:47 +01:00
parent ff5e3d1a88
commit 4fcbd6700f
3 changed files with 46 additions and 0 deletions

View File

@ -9,4 +9,9 @@ if [ "$TRAVIS_OS_NAME" = "linux" ]; then
pkg-config \
libutempter-dev \
build-essential
if [ "$BUILD" = "musl" ]; then
sudo apt-get -y install musl-dev \
musl-tools
fi
fi

View File

@ -10,6 +10,14 @@ case "$BUILD" in
sh $(dirname $0)/build-all.sh
exec make
;;
musl)
CC=musl-gcc sh $(dirname $0)/build-all.sh
exec make
;;
musl-static)
CC=musl-gcc sh $(dirname $0)/build-all.sh --enable-static
exec make
;;
*)
./configure || exit 1
exec make

View File

@ -16,15 +16,32 @@ env:
- BUILD=
- BUILD=static
- BUILD=all
- BUILD=musl
- BUILD=musl-static
jobs:
exclude:
# Static builds are broken on OS X (by Apple)
- os: osx
compiler: gcc
env: BUILD=static
- os: osx
compiler: clang
env: BUILD=static
# No musl on OS X
- os: osx
compiler: gcc
env: BUILD=musl
- os: osx
compiler: clang
env: BUILD=musl
- os: osx
compiler: gcc
env: BUILD=musl-static
- os: osx
compiler: clang
env: BUILD=musl-static
# arm64 doesn't link ncurses
- os: linux
compiler: gcc
arch: arm64
@ -33,6 +50,22 @@ jobs:
compiler: clang
arch: arm64
env: BUILD=all
- os: linux
compiler: gcc
arch: arm64
env: BUILD=musl
- os: linux
compiler: clang
arch: arm64
env: BUILD=musl
- os: linux
compiler: gcc
arch: arm64
env: BUILD=musl-static
- os: linux
compiler: clang
arch: arm64
env: BUILD=musl-static
before_install:
- sh .github/travis/before-install.sh