@@ -10,17 +10,24 @@ jobs:
10
10
strategy :
11
11
matrix :
12
12
os : [ubuntu-22.04]
13
- platform : [x64]
14
- compiler : [gcc]
13
+ platform : [x32, x64]
14
+ compiler : [gcc, clang ]
15
15
configure :
16
- - {label: "with pcre2", opt: "--with-pcre2" }
17
- - {label: "with lua", opt: "--with-lua" }
18
- - {label: "wo lua", opt: "--without-lua" }
16
+ - {label: "with pcre, no study, no jit", opt: "--enable-pcre-study=no" }
17
+ - {label: "with pcre, with study, no jit", opt: "--enable-pcre-study=yes" }
18
+ - {label: "with pcre, no study, with jit", opt: "--enable-pcre-study=no --enable-pcre-jit" }
19
+ - {label: "with pcre, with study, with jit", opt: "--enable-pcre-study=yes --enable-pcre-jit" }
20
+ - {label: "with pcre2", opt: "--with-pcre2 --enable-pcre-study=no" }
21
+ - {label: "with pcre2, with study, no jit", opt: "--with-pcre2 --enable-pcre-study=yes" }
22
+ - {label: "with pcre2, no study, with jit", opt: "--with-pcre2 --enable-pcre-study=no --enable-pcre-jit" }
23
+ - {label: "with pcre2, with study, with jit", opt: "--with-pcre2 --enable-pcre-study=yes --enable-pcre-jit" }
24
+ - {label: "with lua", opt: "--with-lua" }
25
+ - {label: "wo lua", opt: "--without-lua" }
19
26
steps :
20
27
- name : Setup Dependencies
21
28
run : |
22
29
sudo apt-get update -y -qq
23
- sudo apt-get install -y apache2-dev libxml2-dev liblua5.1-0-dev libcurl4-gnutls-dev libpcre2-dev pkg-config libyajl-dev
30
+ sudo apt-get install -y apache2-dev libxml2-dev liblua5.1-0-dev libcurl4-gnutls-dev libpcre2-dev pkg-config libyajl-dev apache2 apache2-bin apache2-data
24
31
- uses : actions/checkout@v2
25
32
- name : autogen.sh
26
33
run : ./autogen.sh
29
36
- uses : ammaraskar/gcc-problem-matcher@master
30
37
- name : make
31
38
run : make -j `nproc`
39
+ - name : install module
40
+ run : sudo make install
41
+ - name : prepare config
42
+ run : |
43
+ sudo cp .github/security2.conf /etc/apache2/mods-enabled/
44
+ sudo cp modsecurity.conf-recommended /etc/apache2/modsecurity.conf
45
+ sudo cp unicode.mapping /etc/apache2/
46
+ sudo mkdir -p /var/cache/modsecurity
47
+ sudo chown -R www-data:www-data /var/cache/modsecurity
48
+ - name : start apache with module
49
+ run : |
50
+ sudo systemctl restart apache2.service
51
+
0 commit comments