forked from neomutt/neomutt
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (50 loc) · 1.49 KB
/
build-and-test.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
62
name: Build and Test
on:
pull_request:
push:
branches:
- 'master'
- 'devel/**'
workflow_dispatch:
jobs:
build:
name: Build-${{ matrix.cfg.name }}
runs-on: ubuntu-latest
container: ghcr.io/neomutt/docker-build
strategy:
# Limit jobs to one at a time so that ccache really helps later builds
max-parallel: 1
matrix:
cfg:
- name: default
options:
- name: disabled
options: --disable-idn --disable-nls --disable-pgp --disable-smime --ssl
- name: everything
options: --autocrypt --bdb --disable-idn --full-doc --gdbm --gnutls --gpgme --gss --idn2 --kyotocabinet --lmdb --lua --lz4 --notmuch --qdbm --sasl --tdb --tokyocabinet --with-lock=fcntl --zlib --zstd
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Checkout Test Files
uses: actions/checkout@v2
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 ${{ matrix.cfg.options }}
- name: Build Neomutt
run: make -j 2
- name: Neomutt Version
run: ./neomutt -v
- name: Build Tests
run: make -j 2 test/neomutt-test
- name: Run Tests
run: |
export NEOMUTT_TEST_DIR=$GITHUB_WORKSPACE/test-files
make test