Let's try adding a dedicated compilation in GitHub Actions to easily detect this kind of errors in the future
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
name: Build
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
jobs:
|
|
sonarcloud:
|
|
name: SonarCloud
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
|
- name: Install dependencies
|
|
run: sudo apt-get install build-essential libc6-dev libpcap-dev libjson-c-dev libgcrypt20-dev gcc-arm-linux-gnueabihf gcc-mingw-w64
|
|
- name: Configure
|
|
run: env CFLAGS='-Werror' ./autogen.sh
|
|
- name: Build
|
|
run: make all
|
|
- name: Test DIFF
|
|
run: ./tests/do.sh
|
|
- name: Test UNIT
|
|
run: ./tests/unit/unit
|
|
- name: Configure (with debug logs)
|
|
run: make distclean && env CFLAGS='-Werror' ./autogen.sh --enable-debug-messages
|
|
- name: Build
|
|
run: make all
|
|
- name: Configure ARM
|
|
run: make distclean && env CFLAGS='-Werror' ./autogen.sh --host=arm-linux-gnueabihf --with-only-libndpi
|
|
- name: Build ARM
|
|
run: make all
|
|
- name: Configure Mingw-w64
|
|
run: make distclean && ./autogen.sh --host=x86_64-w64-mingw32
|
|
- name: Build Mingw-w64
|
|
run: make all
|