forked from thestinger/termite
-
Notifications
You must be signed in to change notification settings - Fork 1
84 lines (71 loc) · 1.88 KB
/
ci.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
74
75
76
77
78
79
80
81
82
83
84
---
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
linux:
name: Linux
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- compiler: clang
cxxcompiler: clang++
- compiler: gcc-10
cxxcompiler: g++-10
env:
CC: ${{ matrix.compiler }}
CXX: ${{ matrix.cxxcompiler }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Setup cache
uses: actions/cache@v2
with:
path: |
~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('.github/workflows/ci.yml') }}
restore-keys: ${{ runner.os }}-pip-
- name: Install dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: |
echo '::group::Update apt'
sudo apt update
echo '::endgroup::'
echo '::group::Install packages'
sudo apt install -y --no-install-recommends \
gperf \
libgnutls28-dev \
libgtk-3-dev \
libpcre2-dev \
libsystemd-dev \
ninja-build \
gcc-10 \
g++-10
echo '::endgroup::'
echo '::group::Python packages'
python -m pip install --upgrade pip setuptools wheel
python -m pip install meson==0.60
echo '::endgroup::'
- name: Install GCC problem matcher
uses: ammaraskar/gcc-problem-matcher@master
- name: Build
run: |
echo '::group::Configure'
meson --prefix /usr _build
echo '::endgroup::'
echo '::group::Compile'
meson compile -C _build
echo '::endgroup::'
- name: Test
run: |
meson test -C _build