Skip to content

Commit 587cbf3

Browse files
committed
Having the QA on GitHub workflow
1 parent 7ebb81b commit 587cbf3

File tree

2 files changed

+77
-0
lines changed

2 files changed

+77
-0
lines changed

.github/workflows/ci.yml

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Quality Assurance
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build-linux:
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
matrix:
12+
os: [ubuntu-20.04]
13+
platform: [x32, x64]
14+
compiler: [gcc, clang]
15+
configure:
16+
- {label: "with parser generation", opt: "--enable-parser-generation" }
17+
- {label: "without curl", opt: "--without-curl" }
18+
- {label: "without yajl", opt: "--without-yajl" }
19+
- {label: "without geoip", opt: "--without-geoip" }
20+
- {label: "without lmdb", opt: "--without-lmdb" }
21+
- {label: "without ssdeep", opt: "--without-ssdeep" }
22+
- {label: "without lua", opt: "--without-lua" }
23+
- {label: "without maxmind", opt: "--without-maxmind" }
24+
steps:
25+
- name: Setup Dependencies
26+
run: |
27+
sudo add-apt-repository --yes ppa:maxmind/ppa
28+
sudo apt-get update -y -qq
29+
sudo apt-get install -y libfuzzy-dev libyajl-dev libgeoip-dev liblua5.2-dev liblmdb-dev cppcheck libmaxminddb-dev libcurl4-openssl-dev
30+
- uses: actions/checkout@v2
31+
with:
32+
submodules: true
33+
- name: build.sh
34+
run: ./build.sh
35+
- name: configure ${{ matrix.configure.label }}
36+
run: ./configure ${{ matrix.configure.opt }}
37+
- name: make
38+
run: make -j `nproc`
39+
- name: check
40+
run: make check
41+
- name: check-static
42+
run: make check-static
43+
44+
build-macos:
45+
runs-on: ${{ matrix.os }}
46+
strategy:
47+
matrix:
48+
os: [macos-10.15, macos-11.0]
49+
compiler: [gcc, clang]
50+
configure:
51+
- {label: "with parser generation", opt: "--enable-parser-generation" }
52+
- {label: "without curl", opt: "--without-curl" }
53+
- {label: "without yajl", opt: "--without-yajl" }
54+
- {label: "without geoip", opt: "--without-geoip" }
55+
- {label: "without lmdb", opt: "--without-lmdb" }
56+
- {label: "without ssdeep", opt: "--without-ssdeep" }
57+
- {label: "without lua", opt: "--without-lua" }
58+
- {label: "without maxmind", opt: "--without-maxmind" }
59+
steps:
60+
- name: Setup Dependencies
61+
run: |
62+
brew install autoconf automake cppcheck lmdb libyaml lua ssdeep libmaxminddb
63+
- uses: actions/checkout@v2
64+
with:
65+
submodules: true
66+
- name: build.sh
67+
run: ./build.sh
68+
- name: configure ${{ matrix.configure.label }}
69+
run: ./configure ${{ matrix.configure.opt }}
70+
- name: make
71+
run: make -j `nproc`
72+
- name: check
73+
run: make check
74+
- name: check-static
75+
run: make check-static

src/actions/xmlns.h

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ class XmlNS : public Action {
4040
m_href(o.m_href)
4141
{ };
4242

43+
XmlNS& operator=(XmlNS &arg) noexcept = delete;
44+
4345
bool init(std::string *error) override;
4446

4547
std::string getScope() const {

0 commit comments

Comments
 (0)