-
-
Notifications
You must be signed in to change notification settings - Fork 65
73 lines (73 loc) · 1.98 KB
/
ci-debian-build-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
63
64
65
66
67
68
69
70
71
72
73
---
name: "CI: Debian & Derivatives"
on:
- push
- pull_request
jobs:
test:
runs-on: ubuntu-latest
container: ${{ matrix.container }}
strategy:
fail-fast: false
matrix:
container:
- 'debian:sid'
- 'debian:stable'
- 'ubuntu:devel'
- 'ubuntu:focal'
- 'ubuntu:bionic'
timeout-minutes: 15
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Install build dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: |
echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf.d/80-no-recommends
apt-get update
apt-get -y upgrade
apt-get -y install \
cmake \
cmark \
gnupg \
libboost-date-time-dev \
libboost-filesystem-dev \
libboost-log-dev \
libboost-program-options-dev \
libboost-system-dev \
libboost-test-dev \
libboost-thread-dev \
libgirepository1.0-dev \
libglibmm-2.4-dev \
libgmime-3.0-dev \
libgtkmm-3.0-dev \
libnotmuch-dev \
libpeas-dev \
libprotobuf-dev \
libsass-dev \
libsoup2.4-dev \
libvte-2.91-dev \
libwebkit2gtk-4.0-dev \
ninja-build \
notmuch \
pkg-config \
protobuf-compiler \
python3-gi \
w3m \
xauth \
xvfb
# Older releases don't have scdoc, but should have ronn
apt-get -y install scdoc || apt-get -y install ruby-ronn
- name: "CMake: Configure"
run: cmake -H. -Bbuild -GNinja
- name: "CMake: Build"
run: cmake --build build
- name: Run Tests
env:
HOME: /tmp/home
LC_ALL: C.UTF-8
run: |
mkdir -p $HOME
cd build
xvfb-run ctest --output-on-failure