]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Enable simplest CI test cases in GitHub Actions (currently also
authorJoe Orton <jorton@apache.org>
Mon, 9 Jan 2023 10:47:13 +0000 (10:47 +0000)
committerJoe Orton <jorton@apache.org>
Mon, 9 Jan 2023 10:47:13 +0000 (10:47 +0000)
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

.github/workflows/linux.yml [new file with mode: 0644]

diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
new file mode 100644 (file)
index 0000000..074304c
--- /dev/null
@@ -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