From 1a7cc8d77b12641f82f13a30f11fb6ef199ef0ed Mon Sep 17 00:00:00 2001 From: Jia Hu Date: Mon, 18 Mar 2024 00:23:36 -0400 Subject: [PATCH] update ci test --- .github/workflows/travis.yml | 90 ++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 .github/workflows/travis.yml diff --git a/.github/workflows/travis.yml b/.github/workflows/travis.yml new file mode 100644 index 00000000..15ac3bab --- /dev/null +++ b/.github/workflows/travis.yml @@ -0,0 +1,90 @@ +name: Travis CI test + +language: c + +os: + - linux + - freebsd + - osx + +compiler: + - gcc + - clang + +arch: + - amd64 + - arm64 + +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 FreeBSD + - os: freebsd + compiler: gcc + env: BUILD=musl + - os: freebsd + compiler: clang + env: BUILD=musl + - os: freebsd + compiler: gcc + env: BUILD=musl-static + - os: freebsd + compiler: clang + env: BUILD=musl-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 + env: BUILD=all + - os: linux + 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 + +script: + - sh .github/travis/build.sh \ No newline at end of file