From: Joe Orton Date: Mon, 9 Jan 2023 10:47:13 +0000 (+0000) Subject: Enable simplest CI test cases in GitHub Actions (currently also X-Git-Tag: 2.5.0-alpha2-ci-test-only~163 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53548da4c9ae3a2513d8cf9e4b1c442fd49054ee;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 00000000000..074304c019e --- /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