From 587cbf39153fccb9cd129433609835fa83064bc4 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Fri, 6 Nov 2020 14:14:31 -0300 Subject: [PATCH] Having the QA on GitHub workflow --- .github/workflows/ci.yml | 75 ++++++++++++++++++++++++++++++++++++++++ src/actions/xmlns.h | 2 ++ 2 files changed, 77 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..6e7faa07 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,75 @@ +name: Quality Assurance + +on: + push: + pull_request: + +jobs: + build-linux: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-20.04] + platform: [x32, x64] + compiler: [gcc, clang] + configure: + - {label: "with parser generation", opt: "--enable-parser-generation" } + - {label: "without curl", opt: "--without-curl" } + - {label: "without yajl", opt: "--without-yajl" } + - {label: "without geoip", opt: "--without-geoip" } + - {label: "without lmdb", opt: "--without-lmdb" } + - {label: "without ssdeep", opt: "--without-ssdeep" } + - {label: "without lua", opt: "--without-lua" } + - {label: "without maxmind", opt: "--without-maxmind" } + steps: + - name: Setup Dependencies + run: | + sudo add-apt-repository --yes ppa:maxmind/ppa + sudo apt-get update -y -qq + sudo apt-get install -y libfuzzy-dev libyajl-dev libgeoip-dev liblua5.2-dev liblmdb-dev cppcheck libmaxminddb-dev libcurl4-openssl-dev + - uses: actions/checkout@v2 + with: + submodules: true + - name: build.sh + run: ./build.sh + - name: configure ${{ matrix.configure.label }} + run: ./configure ${{ matrix.configure.opt }} + - name: make + run: make -j `nproc` + - name: check + run: make check + - name: check-static + run: make check-static + + build-macos: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-10.15, macos-11.0] + compiler: [gcc, clang] + configure: + - {label: "with parser generation", opt: "--enable-parser-generation" } + - {label: "without curl", opt: "--without-curl" } + - {label: "without yajl", opt: "--without-yajl" } + - {label: "without geoip", opt: "--without-geoip" } + - {label: "without lmdb", opt: "--without-lmdb" } + - {label: "without ssdeep", opt: "--without-ssdeep" } + - {label: "without lua", opt: "--without-lua" } + - {label: "without maxmind", opt: "--without-maxmind" } + steps: + - name: Setup Dependencies + run: | + brew install autoconf automake cppcheck lmdb libyaml lua ssdeep libmaxminddb + - uses: actions/checkout@v2 + with: + submodules: true + - name: build.sh + run: ./build.sh + - name: configure ${{ matrix.configure.label }} + run: ./configure ${{ matrix.configure.opt }} + - name: make + run: make -j `nproc` + - name: check + run: make check + - name: check-static + run: make check-static diff --git a/src/actions/xmlns.h b/src/actions/xmlns.h index d03b48b9..7d74d851 100644 --- a/src/actions/xmlns.h +++ b/src/actions/xmlns.h @@ -40,6 +40,8 @@ class XmlNS : public Action { m_href(o.m_href) { }; + XmlNS& operator=(XmlNS &arg) noexcept = delete; + bool init(std::string *error) override; std::string getScope() const {