Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,45 @@ jobs:

- 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 \
openssl \
lua \
unbound

- 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
./Build
sudo mkdir -p /usr/local/include/libmilter /usr/local/lib
sudo cp ../include/libmilter/mfapi.h ../include/libmilter/mfdef.h /usr/local/include/libmilter/
sudo cp "$(find .. -name 'libmilter.a' | head -1)" /usr/local/lib/

- name: Bootstrap build system
run: autoreconf -fvi

- name: Configure
run: |
PKG_CONFIG_PATH="$(brew --prefix openssl)/lib/pkgconfig:$(brew --prefix lua)/lib/pkgconfig" \
./configure --enable-lua \
--with-unbound="$(brew --prefix unbound)" \
CFLAGS='-g -O2 -Wno-pointer-sign -std=gnu11' \
CPPFLAGS="-I/usr/local/include" \
LDFLAGS="-L/usr/local/lib"

- name: Build
run: make -j$(sysctl -n hw.logicalcpu)

- name: Test
run: make check
3 changes: 3 additions & 0 deletions libopendkim/dkim-atps.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ extern void dkim_error (DKIM *, const char *, ...);
#ifndef T_RRSIG
# define T_RRSIG 46
#endif /* ! T_RRSIG */
#ifndef T_DNAME
# define T_DNAME 39
#endif /* ! T_DNAME */
#ifndef MAX
# define MAX(x,y) ((x) > (y) ? (x) : (y))
#endif /* ! MAX */
Expand Down
3 changes: 3 additions & 0 deletions libopendkim/dkim-keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ extern void dkim_error (DKIM *, const char *, ...);
#ifndef T_RRSIG
# define T_RRSIG 46
#endif /* ! T_RRSIG */
#ifndef T_DNAME
# define T_DNAME 39
#endif /* ! T_DNAME */

/*
** DKIM_GET_KEY_DNS -- retrieve a DKIM key from DNS
Expand Down
3 changes: 3 additions & 0 deletions libopendkim/dkim-report.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ extern void dkim_error (DKIM *, const char *, ...);
#ifndef T_RRSIG
# define T_RRSIG 46
#endif /* ! T_RRSIG */
#ifndef T_DNAME
# define T_DNAME 39
#endif /* ! T_DNAME */
#ifndef MAX
# define MAX(x,y) ((x) > (y) ? (x) : (y))
#endif /* ! MAX */
Expand Down
Loading