|
| 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 |
0 commit comments