summaryrefslogtreecommitdiff
path: root/.github/workflows/build-and-test.yml
blob: 452e128c4a0110fc25fd5a161a249eb3ec18c4c3 (plain)
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
name: Build & run tests

on:
  - push
  - pull_request

jobs:
  build:
    runs-on: ${{ matrix.os }}
    timeout-minutes: 30
    strategy:
      fail-fast: false
      matrix:
        os:
          - ubuntu-latest
          - macos-latest

    steps:
      - uses: actions/checkout@v2

      - if: contains(matrix.os, 'ubuntu')
        name: ubuntu-deps
        run: |
          sudo apt update
          sudo apt-get install meson ninja-build libglib2.0-dev libxapian-dev libgmime-3.0-dev libcld2-dev pkg-config guile-3.0-dev emacs texinfo

      - if: contains(matrix.os, 'macos')
        name: macos-deps
        run: |
          brew install meson ninja libgpg-error pkg-config glib gmime xapian guile emacs texinfo

      - name: build
        run: make

      - name: test
        run: make test-verbose-if-fail