|
74 | 74 | - name: Show mod_security2 audit log
|
75 | 75 | if: always()
|
76 | 76 | run: sudo cat /var/log/apache2/modsec_audit.log
|
| 77 | + |
| 78 | + test-linux: |
| 79 | + runs-on: ${{ matrix.os }} |
| 80 | + strategy: |
| 81 | + matrix: |
| 82 | + os: [ubuntu-22.04] |
| 83 | + platform: [x32, x64] |
| 84 | + compiler: [gcc, clang] |
| 85 | + configure: |
| 86 | + - {label: "with pcre, no study, no jit", opt: "--enable-pcre-study=no" } |
| 87 | + - {label: "with pcre, with study, no jit", opt: "--enable-pcre-study=yes" } |
| 88 | + - {label: "with pcre, no study, with jit", opt: "--enable-pcre-study=no --enable-pcre-jit" } |
| 89 | + - {label: "with pcre, with study, with jit", opt: "--enable-pcre-study=yes --enable-pcre-jit" } |
| 90 | + - {label: "with pcre2", opt: "--with-pcre2 --enable-pcre-study=no" } |
| 91 | + - {label: "with pcre2, with study, no jit", opt: "--with-pcre2 --enable-pcre-study=yes" } |
| 92 | + - {label: "with pcre2, no study, with jit", opt: "--with-pcre2 --enable-pcre-study=no --enable-pcre-jit" } |
| 93 | + - {label: "with pcre2, with study, with jit", opt: "--with-pcre2 --enable-pcre-study=yes --enable-pcre-jit" } |
| 94 | + - {label: "with lua", opt: "--with-lua" } |
| 95 | + - {label: "wo lua", opt: "--without-lua" } |
| 96 | + steps: |
| 97 | + - name: Setup Dependencies |
| 98 | + run: | |
| 99 | + sudo apt-get update -y -qq |
| 100 | + sudo apt-get install -y --no-install-recommends apache2-dev libxml2-dev liblua5.1-0-dev libcurl4-gnutls-dev libpcre2-dev pkg-config libyajl-dev apache2 apache2-bin apache2-data |
| 101 | + - uses: actions/checkout@v2 |
| 102 | + - name: autogen.sh |
| 103 | + run: ./autogen.sh |
| 104 | + - name: configure ${{ matrix.configure.label }} |
| 105 | + run: ./configure ${{ matrix.configure.opt }} 'CFLAGS=-Werror=format-security' |
| 106 | + - uses: ammaraskar/gcc-problem-matcher@master |
| 107 | + - name: make |
| 108 | + run: make -j `nproc` |
| 109 | + - name: install module |
| 110 | + run: sudo make install |
| 111 | + - name: run tests |
| 112 | + run: make test |
0 commit comments