-
-
Notifications
You must be signed in to change notification settings - Fork 303
61 lines (46 loc) · 1.47 KB
/
macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: macOS
on:
schedule:
- cron: '0 4 * * 1'
# Mondays at 04:00
workflow_dispatch:
env:
EXTRA_CFLAGS: "-pipe"
jobs:
build:
name: Build on macOS
runs-on: macos-latest
steps:
- name: Get number of CPU cores
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
- name: Checkout Test Files
uses: actions/checkout@v4
with:
repository: neomutt/neomutt-test-files
path: test-files
- name: Set Up Test Files
run: |
cd test-files
./setup.sh
- name: Compilation Cache
uses: hendrikmuhs/ccache-action@v1
- name: Configure Neomutt
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
- name: Neomutt Version
run: ./neomutt -v
- name: Build Tests
run: make -j ${{steps.cpu-cores.outputs.count}} test/neomutt-test
- name: Run Tests
run: |
export NEOMUTT_TEST_DIR=$GITHUB_WORKSPACE/test-files
make test