summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2023-01-09 10:47:13 +0000
committerJoe Orton <jorton@apache.org>2023-01-09 10:47:13 +0000
commit53548da4c9ae3a2513d8cf9e4b1c442fd49054ee (patch)
tree934d9eb479c003f41855ac6729d9c6ed6902ca38 /.github
parent5e492d9758d0f2345f623cd5a5d9a3a48c131c40 (diff)
downloadhttpd-53548da4c9ae3a2513d8cf9e4b1c442fd49054ee.tar.gz
Enable simplest CI test cases in GitHub Actions (currently also
still enabled in Travis). Based on apr/trunk. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1906482 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/linux.yml56
1 files changed, 56 insertions, 0 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
new file mode 100644
index 0000000000..074304c019
--- /dev/null
+++ b/.github/workflows/linux.yml
@@ -0,0 +1,56 @@
+name: Linux
+
+on:
+ push:
+ branches: [ "*" ]
+ pull_request:
+ branches: [ "trunk" ]
+
+env:
+ MARGS: "-j2"
+ CFLAGS: "-g"
+
+jobs:
+ build:
+ strategy:
+ matrix:
+ include:
+ - name: Default
+ # -------------------------------------------------------------------------
+ - name: All-static modules
+ config: --enable-mods-static=reallyall
+ # -------------------------------------------------------------------------
+ - name: Prefork MPM, all-modules (except cgid)
+ config: --enable-mods-shared=reallyall --with-mpm=prefork --disable-cgid
+ # -------------------------------------------------------------------------
+ - name: Worker MPM, all-modules
+ config: --enable-mods-shared=reallyall --with-mpm=worker
+ # -------------------------------------------------------------------------
+ - name: Shared MPMs, all-modules
+ config: --enable-mods-shared=reallyall --enable-mpms-shared=all
+ # -------------------------------------------------------------------------
+ - name: Event MPM, all-modules, mod_cgid only
+ config: --enable-mods-shared=reallyall --with-mpm=event --disable-cgi
+ # -------------------------------------------------------------------------
+ - name: Event MPM, all-modules, no CMSG_DATA
+ config: --enable-mods-shared=reallyall --with-mpm=event ac_cv_have_decl_CMSG_DATA=no
+ fail-fast: false
+ runs-on: ubuntu-latest
+ env:
+ NOTEST_CFLAGS: ${{ matrix.notest-cflags }}
+ CONFIG: ${{ matrix.config }}
+ name: ${{ matrix.name }}
+ steps:
+ - name: apt refresh
+ run: sudo apt-get -o Acquire::Retries=5 update
+ - name: Install prerequisites
+ run: sudo apt-get install -o Acquire::Retries=5
+ cpanminus libtool-bin libapr1-dev libaprutil1-dev
+ liblua5.3-dev libbrotli-dev libcurl4-openssl-dev
+ libnghttp2-dev libjansson-dev libpcre2-dev gdb
+ perl-doc
+ - uses: actions/checkout@v3
+ - name: Configure environment
+ run: ./test/travis_before_linux.sh
+ - name: Build and test
+ run: ./test/travis_run_linux.sh