summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorIvan Zhakov <ivan@apache.org>2022-06-21 14:37:21 +0000
committerIvan Zhakov <ivan@apache.org>2022-06-21 14:37:21 +0000
commit935a9d6965cf5d382cebcc403deb03afc62f6d74 (patch)
tree50af3ee45d58f6c65517906f5dbcb27b8a9852d9 /.github
parent94c4651ed93f4f5ca30d4490518b44e3be4739cf (diff)
downloadapr-935a9d6965cf5d382cebcc403deb03afc62f6d74.tar.gz
Configure GitHub Actions Linux CI. Based on Travis configuration.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902140 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/linux.yml50
1 files changed, 50 insertions, 0 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
new file mode 100644
index 000000000..22ee9972a
--- /dev/null
+++ b/.github/workflows/linux.yml
@@ -0,0 +1,50 @@
+name: Linux
+
+on:
+ push:
+ branches: [ "trunk" ]
+ pull_request:
+ branches: [ "trunk" ]
+
+env:
+ MARGS: "-j2"
+
+jobs:
+
+ build:
+ strategy:
+ matrix:
+ include:
+ - name: Default
+ - name: Static
+ config: --enable-static
+ - name: Maintainer-mode
+ config: --enable-maintainer-mode
+ - name: Pool-debug
+ config: --enable-pool-debug
+ - name: Pool-debug, maintainer-mode
+ config: --enable-pool-debug --enable-maintainer-mode
+ - name: Maintainer-mode, no IPv6
+ config: --enable-maintainer-mode --disable-ipv6
+ - name: Maintainer-mode, -Werror
+ notest-cflags: -Werror
+ config: --enable-maintainer-mode
+ - name: UBsan
+ notest-cflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer -Werror -O2
+
+ runs-on: ubuntu-latest
+ env:
+ NOTEST_CFLAGS: ${{ matrix.notest-cflags }}
+ name: ${{ matrix.name }}
+ steps:
+ - name: Install prerequisites
+ run: sudo apt-get install libtool libtool-bin
+ - uses: actions/checkout@v3
+ - name: buildconf
+ run: ./buildconf
+ - name: configure
+ run: ./configure ${{ matrix.config }}
+ - name: make
+ run: make $MARGS
+ - name: make check
+ run: make check