@@ -17,55 +17,79 @@ jobs:
1717 matrix :
1818 include :
1919 - name : Default
20+ os : ubuntu-latest
21+ # Check default shm decision logic for Linux:
22+ config-output : APR_USE_SHMEM_MMAP_SHM APR_USE_SHMEM_MMAP_ANON
23+ # Check various defaults for Linux
24+ config-private : >-
25+ HAVE_EPOLL HAVE_C_VARARRAYS HAVE_CALLOC HAVE_EXPAT_H HAVE_FLOCK HAVE_FORK
26+ HAVE_GAI_ADDRCONFIG HAVE_GAI_STRERROR GETSERVBYNAME_R_GLIBC2
27+ - name : Default (arm64)
28+ os : ubuntu-22.04-arm
2029 # Check default shm decision logic for Linux:
2130 config-output : APR_USE_SHMEM_MMAP_SHM APR_USE_SHMEM_MMAP_ANON
2231 - name : Static
32+ os : ubuntu-latest
2333 config : --enable-static
2434 - name : Maintainer-mode
35+ os : ubuntu-latest
2536 config : --enable-maintainer-mode
2637 - name : Named SHM - SysV, Maintainer-mode
38+ os : ubuntu-latest
2739 config : --enable-maintainer-mode --enable-sysv-shm
2840 config-output : APR_USE_SHMEM_SHMGET
2941 - name : Named SHM - Classic mmap, Maintainer-mode
42+ os : ubuntu-latest
3043 config : --enable-maintainer-mode ac_cv_func_shm_open=no ac_cv_func_shmget=no
3144 config-output : APR_USE_SHMEM_MMAP_TMP
3245 - name : Pool-debug
46+ os : ubuntu-latest
3347 config : --enable-pool-debug
3448 - name : Pool-debug, maintainer-mode
49+ os : ubuntu-latest
3550 config : --enable-pool-debug --enable-maintainer-mode
3651 - name : Thread-debug, maintainer-mode
52+ os : ubuntu-latest
3753 config : --enable-thread-debug --enable-maintainer-mode
3854 - name : Maintainer-mode, no IPv6
55+ os : ubuntu-latest
3956 config : --enable-maintainer-mode --disable-ipv6
4057 - name : Maintainer-mode, -Werror
58+ os : ubuntu-latest
4159 notest-cflags : -Werror
4260 config : --enable-maintainer-mode
4361 - name : With crypto
62+ os : ubuntu-latest
4463 config : --with-crypto=yes --with-openssl=yes
4564 config-output : APU_HAVE_CRYPTO APU_HAVE_OPENSSL
4665 - name : ASan
66+ os : ubuntu-latest
4767 # w/o ODBC since DSO unload leaks memory and fails the tests
4868 notest-cflags : -fsanitize=address -fno-sanitize-recover=address -fno-omit-frame-pointer -Werror -O2
4969 config : --with-odbc=no
5070 - name : ASan, pool-debug
71+ os : ubuntu-latest
5172 # w/o ODBC since DSO unload leaks memory and fails the tests
5273 notest-cflags : -fsanitize=address -fno-sanitize-recover=address -fno-omit-frame-pointer -Werror -O2
5374 config : --enable-pool-debug --with-odbc=no
5475 - name : UBsan
76+ os : ubuntu-latest
5577 notest-cflags : -fsanitize=undefined -fno-sanitize-recover=undefined -fno-omit-frame-pointer -Werror -O2
5678 - name : LMDB
79+ os : ubuntu-latest
5780 packages : liblmdb-dev
5881 notest-cflags : -Werror
5982 config : --enable-maintainer-mode --with-lmdb --with-dbm=lmdb
6083 config-output : APU_HAVE_LMDB
6184 - name : Berkeley DB v5.3
85+ os : ubuntu-latest
6286 packages : libdb5.3-dev
6387 notest-cflags : -Werror
6488 config : --enable-maintainer-mode --with-berkeley-db --with-dbm=db5
6589 config-output : APU_HAVE_DB
6690 fail-fast : false
6791
68- runs-on : ubuntu-latest
92+ runs-on : ${{ matrix.os }}
6993 env :
7094 NOTEST_CFLAGS : ${{ matrix.notest-cflags }}
7195 name : ${{ matrix.name }}
@@ -81,8 +105,11 @@ jobs:
81105 - name : configure
82106 run : ./configure --prefix=/tmp/apr ${{ matrix.config }}
83107 - if : ${{ matrix.config-output != '' }}
84- name : check for expected configure output ${{ matrix.config-output }}
108+ name : check for expected apr.h definitions ${{ matrix.config-output }}
85109 run : for var in ${{ matrix.config-output }}; do grep "^#define *${var} *1" include/apr.h; done
110+ - if : ${{ matrix.config-private != '' }}
111+ name : check for expected apr_private.h definitions ${{ matrix.config-private }}
112+ run : for var in ${{ matrix.config-private }}; do grep "^#define *${var} *1" include/arch/unix/apr_private.h; done
86113 - name : make
87114 run : make $MARGS
88115 - name : install
0 commit comments