aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build-test-ci.yml')
-rw-r--r--.github/workflows/build-test-ci.yml51
1 files changed, 51 insertions, 0 deletions
diff --git a/.github/workflows/build-test-ci.yml b/.github/workflows/build-test-ci.yml
new file mode 100644
index 0000000..5c95baa
--- /dev/null
+++ b/.github/workflows/build-test-ci.yml
@@ -0,0 +1,51 @@
+# GitHub actions workflow.
+# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
+
+name: Build+Test CI
+
+on: [pull_request, push]
+
+jobs:
+ glibc:
+ strategy:
+ matrix:
+ cc: [gcc, clang]
+ fail-fast: false
+ runs-on: ubuntu-latest
+ env:
+ CC: ${{ matrix.cc }}
+ steps:
+ - name: Install dependencies
+ run: |
+ sudo apt-get update -qq
+ sudo apt-get install build-essential gcc clang automake autoconf autoconf-archive libtool pax-utils -qy
+
+ - uses: actions/checkout@v3
+ name: Checkout
+
+ - name: Build
+ run: |
+ ./autogen.sh
+ ./configure || { cat config.log; false; }
+ make V=1
+ make V=1 check || { cat tests/testsuite.log; false; }
+ make V=1 distcheck
+
+ musl:
+ runs-on: ubuntu-latest
+ container:
+ image: alpine:latest
+ options: --cap-add=SYS_PTRACE
+ steps:
+ - name: Install dependencies
+ run: apk add bash coreutils build-base automake autoconf autoconf-archive libtool pax-utils gawk sed
+
+ - name: Checkout
+ uses: actions/checkout@v3
+
+ - name: Build
+ run: |
+ ./autogen.sh
+ ./configure || { cat config.log; false; }
+ make V=1
+ make V=1 check || { cat tests/testsuite.log; false; }