svn commit: r1920419 - /apr/apr-util/branches/1.7.x/.github/workflows/linux.yml

[email protected]
Newsgroups gmane.comp.apache.apr.cvs
Message-ID <[email protected]>
Author: jorton
Date: Tue Sep  3 09:38:35 2024
New Revision: 1920419

URL: http://svn.apache.org/viewvc?rev=1920419&view=rev
Log:
CI: Add some basic Linux job definitions.

Added:
    apr/apr-util/branches/1.7.x/.github/workflows/linux.yml

Added: apr/apr-util/branches/1.7.x/.github/workflows/linux.yml
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.7.x/.github/workflows/linux.yml?rev=1920419&view=auto
==============================================================================
--- apr/apr-util/branches/1.7.x/.github/workflows/linux.yml (added)
+++ apr/apr-util/branches/1.7.x/.github/workflows/linux.yml Tue Sep  3 09:38:35 2024
@@ -0,0 +1,96 @@
+name: Linux
+
+on:
+  push:
+    branches: [ "1.7.x", "1.6.x" ]
+    tags: [ "*" ]
+  pull_request:
+    branches: [ "1.7.x", "1.6.x" ]
+
+env:
+  MARGS: "-j2"
+
+jobs:
+
+  build:
+    strategy:
+      fail-fast: false
+      matrix:
+        apr-version: [1.6.x, 1.7.x]
+        os: [ubuntu-20.04, ubuntu-22.04]
+        include: 
+          - name: APR 1.7.x maintainer-mode
+            apr-version: 1.7.x
+            apr-config: --enable-maintainer-mode
+            config-output: APU_HAVE_SDBM
+            notest-cflags: -Werror
+            os: ubuntu-latest
+          - name: APR 1.7.x LDAP + maintainer-mode
+            apr-version: 1.7.x
+            apr-config: --enable-maintainer-mode
+            config-output: APU_HAVE_SDBM
+            config: --with-ldap
+            notest-cflags: -Werror
+            packages: libldap-dev libsasl2-dev
+            os: ubuntu-latest
+          - name: APR 1.7.x Databases + maintainer-mode
+            apr-version: 1.7.x
+            apr-config: --enable-maintainer-mode
+            config-output: APU_HAVE_SDBM
+            config: --with-dbm=db5 --with-berkeley-db --with-gdbm --with-ndbm
+            notest-cflags: -Werror
+            packages: libdb5.3-dev
+            os: ubuntu-latest
+          - name: APR 1.7.x OpenSSL + maintainer-mode
+            apr-version: 1.7.x
+            apr-config: --enable-maintainer-mode
+            config: --with-crypto=yes --with-openssl=yes
+            config-output: APU_HAVE_CRYPTO APU_HAVE_OPENSSL APU_HAVE_SDBM
+            notest-cflags: -Werror
+            os: ubuntu-latest
+          - name: APR 1.7.x LDAP+DB+OpenSSL, Ubuntu 20.04
+            apr-version: 1.7.x
+            apr-config: --enable-maintainer-mode
+            config: >-
+              --with-crypto=yes --with-openssl=yes --with-ldap
+              --with-dbm=db5 --with-berkeley-db --with-gdbm --with-ndbm
+            config-output: APU_HAVE_CRYPTO APU_HAVE_OPENSSL APU_HAVE_SDBM
+            notest-cflags: -Werror
+            os: ubuntu-20.04
+            packages: libdb5.3-dev libldap-dev libsasl2-dev
+    runs-on: ${{ matrix.os }}
+    env:
+      NOTEST_CFLAGS: ${{ matrix.notest-cflags }}
+    name: ${{ matrix.name }}
+    steps:
+    - name: Install prerequisites
+      run: sudo apt-get install libtool libtool-bin ${{ matrix.packages }}
+    - name: Workaround ASAN issue in Ubuntu 22.04 runners
+      run: sudo sysctl vm.mmap_rnd_bits=28
+    - uses: actions/checkout@v4
+    # https://github.com/actions/runner-images/issues/9491#issuecomment-1989718917
+    - uses: actions/checkout@v4
+      with:
+        repository: apache/apr
+        ref: ${{ matrix.apr-version }}
+        path: apr
+    - name: Configure and build APR ${{ matrix.apr-version }}
+      working-directory: ./apr
+      run: |
+        ./buildconf
+        ./configure ${{ matrix.apr-config }} --prefix=/tmp/apr-root
+        make $MARGS
+        make install
+    - name: buildconf
+      run: ./buildconf --with-apr=./apr
+    - name: configure
+      run: ./configure --prefix=/tmp/apr-util --with-apr=/tmp/apr-root ${{ matrix.config }}
+    - if: ${{ matrix.config-output != '' }}
+      name: check for expected configure output ${{ matrix.config-output }}
+      run: for var in ${{ matrix.config-output }}; do grep "^#define *${var} *1" include/apu.h; done
+    - name: make
+      run: make $MARGS
+    - name: install
+      run: make install
+    - name: check
+      run: make check
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.