fix: declare opendmarc_policy_fetch_fo() in dmarc.h.in (#407) #161
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ develop ] | |
| paths-ignore: | |
| - '**.md' | |
| - 'doc/**' | |
| - 'contrib/**' | |
| pull_request: | |
| branches: [ develop ] | |
| paths-ignore: | |
| - '**.md' | |
| - 'doc/**' | |
| - 'contrib/**' | |
| workflow_dispatch: | |
| jobs: | |
| build-test-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 \ | |
| lua5.4 liblua5.4-dev \ | |
| libdbi-perl libwww-perl libio-compress-perl libjson-perl \ | |
| libnet-dns-perl | |
| - name: Build miltertest | |
| run: | | |
| git clone --depth=1 https://github.com/thegushi/miltertest.git /tmp/miltertest | |
| cd /tmp/miltertest | |
| autoreconf -fvi | |
| ./configure CFLAGS='-g -O2 -Wno-pointer-sign' | |
| make -j$(nproc) | |
| sudo make install | |
| - name: Bootstrap build system | |
| run: autoreconf -fvi | |
| - name: Configure | |
| run: | | |
| ./configure --enable-live-tests \ | |
| CFLAGS='-g -O2 -Wno-pointer-sign' | |
| - name: Build | |
| run: make -j$(nproc) | |
| - name: Check Perl syntax | |
| run: | | |
| perl -c reports/opendmarc-expire | |
| perl -c reports/opendmarc-import | |
| perl -c reports/opendmarc-importstats | |
| perl -c reports/opendmarc-params | |
| perl -c reports/opendmarc-reports | |
| - name: Test | |
| run: make check | |
| build-test-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| brew install \ | |
| autoconf automake libtool pkg-config \ | |
| openssl \ | |
| lua \ | |
| cpanminus | |
| cpanm --notest DBI LWP IO::Compress JSON Net::DNS | |
| - name: Build and install libmilter from source | |
| run: | | |
| SENDMAIL_VER=8.18.2 | |
| curl -fsSL "ftp://ftp.sendmail.org/pub/sendmail/sendmail.${SENDMAIL_VER}.tar.gz" | tar xz -C /tmp | |
| cd /tmp/sendmail-${SENDMAIL_VER}/libmilter | |
| ls /tmp/sendmail-${SENDMAIL_VER}/ # debug: confirm extraction layout | |
| ./Build | |
| find . -name "libmilter.a" # debug: show actual output path | |
| OBJDIR=$(echo obj.*) | |
| sudo mkdir -p /usr/local/include/libmilter /usr/local/lib | |
| sudo cp ../include/sendmail.h /usr/local/include/ | |
| sudo cp mfapi.h mfdef.h /usr/local/include/libmilter/ | |
| sudo cp ${OBJDIR}/libmilter.a /usr/local/lib/ | |
| - name: Build miltertest | |
| run: | | |
| git clone --depth=1 https://github.com/thegushi/miltertest.git /tmp/miltertest | |
| cd /tmp/miltertest | |
| autoreconf -fvi | |
| ./configure \ | |
| CFLAGS='-g -O2 -Wno-pointer-sign' \ | |
| CPPFLAGS="-I$(brew --prefix openssl)/include -I/usr/local/include" \ | |
| LDFLAGS="-L$(brew --prefix openssl)/lib -L/usr/local/lib" | |
| make -j$(sysctl -n hw.logicalcpu) | |
| sudo make install | |
| - name: Bootstrap build system | |
| run: autoreconf -fvi | |
| - name: Configure | |
| run: | | |
| ./configure --enable-live-tests \ | |
| CFLAGS='-g -O2 -Wno-pointer-sign' \ | |
| CPPFLAGS="-I$(brew --prefix openssl)/include -I/usr/local/include" \ | |
| LDFLAGS="-L$(brew --prefix openssl)/lib -L/usr/local/lib" | |
| - name: Build | |
| run: make -j$(sysctl -n hw.logicalcpu) | |
| - name: Check Perl syntax | |
| run: | | |
| perl -c reports/opendmarc-expire | |
| perl -c reports/opendmarc-import | |
| perl -c reports/opendmarc-importstats | |
| perl -c reports/opendmarc-params | |
| perl -c reports/opendmarc-reports | |
| - name: Test | |
| run: make check |