diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..5d1e04c4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: [ develop ] + pull_request: + branches: [ develop ] + workflow_dispatch: + +jobs: + build-linux: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install dependencies + run: | + sudo apt-get update -q + sudo apt-get install -y \ + autoconf automake libtool pkg-config \ + libssl-dev libmilter-dev + + - name: Bootstrap build system + run: autoreconf -fvi + + - name: Configure + run: ./configure CFLAGS='-g -O2 -Wno-pointer-sign' + + - name: Build + run: make -j$(nproc) + + - name: Test + run: make check