forked from neomutt/neomutt
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (42 loc) · 1.17 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
name: macOS
on:
schedule:
- cron: '0 4 * * 1'
# Mondays at 04:00
workflow_dispatch:
env:
EXTRA_LDFLAGS: "-L/usr/local/opt/ncurses/lib"
EXTRA_CFLAGS: "-I/usr/local/opt/ncurses/include -pipe"
jobs:
build:
name: Build on macOS
runs-on: macos-latest
steps:
- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v1
id: cpu-cores
- name: Checkout Code
uses: actions/checkout@v3
- name: Checkout Test Files
uses: actions/checkout@v3
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
- 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