aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-05-03 12:33:47 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-05-03 12:33:47 +0100
commit4fcbd6700f7030c93361c76a03337e632227da75 (patch)
treed92a1642a6f6a23dbceb217d680bb5aa488575cb
parentff5e3d1a882d7ac80f76da49418408e0e3bc2e45 (diff)
downloadrtmux-4fcbd6700f7030c93361c76a03337e632227da75.tar.gz
rtmux-4fcbd6700f7030c93361c76a03337e632227da75.tar.bz2
rtmux-4fcbd6700f7030c93361c76a03337e632227da75.zip
Add musl builds.
-rw-r--r--.github/travis/before-install.sh5
-rw-r--r--.github/travis/build.sh8
-rw-r--r--.travis.yml33
3 files changed, 46 insertions, 0 deletions
diff --git a/.github/travis/before-install.sh b/.github/travis/before-install.sh
index 22d93970..31fc5868 100644
--- a/.github/travis/before-install.sh
+++ b/.github/travis/before-install.sh
@@ -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
diff --git a/.github/travis/build.sh b/.github/travis/build.sh
index c244c59c..f863d8ad 100644
--- a/.github/travis/build.sh
+++ b/.github/travis/build.sh
@@ -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
diff --git a/.travis.yml b/.travis.yml
index 5a205523..16a04a16 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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