Skip to content

Commit

Permalink
use homebrew in macOS build
Browse files Browse the repository at this point in the history
This allows us to enable more features in the macOS build.
  • Loading branch information
roccoblues committed Apr 25, 2024
1 parent 250e618 commit 806e8aa
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ on:
workflow_dispatch:

env:
EXTRA_LDFLAGS: "-L/usr/local/opt/ncurses/lib"
EXTRA_CFLAGS: "-I/usr/local/opt/ncurses/include -pipe"
EXTRA_CFLAGS: "-pipe"

jobs:
build:
Expand All @@ -20,6 +19,13 @@ jobs:
uses: SimenB/github-actions-cpu-cores@v2
id: cpu-cores

- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master

- name: Install dependencies
run: brew install notmuch libidn2 libiconv ncurses lmdb

- name: Checkout Code
uses: actions/checkout@v4

Expand All @@ -38,7 +44,7 @@ jobs:
uses: hendrikmuhs/ccache-action@v1

- name: Configure Neomutt
run: ./configure --disable-doc --disable-nls
run: ./configure --disable-doc --disable-nls --notmuch --with-notmuch=/opt/homebrew/opt/notmuch --lmdb --zlib --idn2 --with-idn=/opt/homebrew/opt/libidn2 --with-iconv=/opt/homebrew/opt/libiconv --with-ncurses=/opt/homebrew/opt/ncurses

- name: Build Neomutt
run: make -j ${{steps.cpu-cores.outputs.count}} neomutt
Expand Down

0 comments on commit 806e8aa

Please sign in to comment.