summaryrefslogtreecommitdiff
path: root/.github/workflows/c-cpp.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/c-cpp.yml')
-rw-r--r--.github/workflows/c-cpp.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml
index f54f379..d156588 100644
--- a/.github/workflows/c-cpp.yml
+++ b/.github/workflows/c-cpp.yml
@@ -37,3 +37,25 @@ jobs:
- name: make distcheck
# normal build is with ASAN, distcheck is without ASAN. Both are covered.
run: make distcheck --jobs=`nproc`
+
+ build-macos:
+ runs-on: macos-latest
+ steps:
+ - uses: actions/checkout@v2
+ with: { submodules: true }
+ - name: Install dependencies
+ run: |
+ brew tap nuspell/nuspell
+ brew install automake dbus-glib hspell hunspell libvoikko unittest-cpp nuspell coreutils
+ - name: Bootstrap (gnulib and autoreconf)
+ run: PATH="$(brew --prefix)/opt/m4/bin:${PATH}" ./bootstrap
+ - name: configure
+ # Note: aspell should work on macOS, but has been removed because one of
+ # the tests fails; see https://github.com/GNUAspell/aspell/issues/555
+ run: ./configure --enable-relocatable --without-aspell
+ - name: make
+ run: make --jobs=`nproc`
+ - name: make check
+ run: make check --jobs=`nproc`
+ - name: make distcheck
+ run: make distcheck --jobs=`nproc` DISTCHECK_CONFIGURE_FLAGS="--without-aspell"