2020-06-11 23:11:29 +02:00
|
|
|
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
|
2023-01-16 21:20:17 +01:00
|
|
|
sudo apt-get install meson ninja-build libglib2.0-dev libxapian-dev libgmime-3.0-dev pkg-config guile-3.0-dev emacs texinfo
|
2020-06-11 23:11:29 +02:00
|
|
|
|
|
|
|
- if: contains(matrix.os, 'macos')
|
|
|
|
name: macos-deps
|
|
|
|
run: |
|
2023-01-16 21:20:17 +01:00
|
|
|
brew install meson ninja libgpg-error libtool pkg-config glib gmime xapian guile emacs texinfo
|
2020-06-11 23:11:29 +02:00
|
|
|
|
|
|
|
- name: configure
|
2022-12-30 23:02:55 +01:00
|
|
|
run: ./autogen.sh '-Db_sanitize=address'
|
2020-06-11 23:11:29 +02:00
|
|
|
|
|
|
|
- name: build
|
|
|
|
run: make
|
|
|
|
|
|
|
|
- name: test
|
2022-02-26 09:08:48 +01:00
|
|
|
run: make test-verbose-if-fail
|