-
Notifications
You must be signed in to change notification settings - Fork 25
64 lines (63 loc) · 1.74 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
name: CI
on:
- push
- pull_request
- workflow_dispatch
jobs:
test-linux:
runs-on: ubuntu-latest
env:
CCACHE_DIR: ${{github.workspace}}/ccache
CCACHE_MAXSIZE: 100M
strategy:
matrix:
tag:
- minimal
- system-libs
- bundled-libs
include:
- tag: minimal
deps: |
libb2-dev
libqca-qt5-2-dev
options: -DIRIS_ENABLE_JINGLE_SCTP=OFF
- tag: system-libs
deps: |
libb2-dev
libqca-qt5-2-dev
libusrsctp-dev
options: -DIRIS_BUNDLED_QCA=OFF -DIRIS_BUNDLED_USRSCTP=OFF
- tag: bundled-libs
deps: null
options: -DIRIS_BUNDLED_QCA=ON -DIRIS_BUNDLED_USRSCTP=ON
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: |
${{matrix.deps}}
ccache
ninja-build
qtbase5-dev
version: ${{matrix.tag}}
- name: Configure
run: |
cmake -B ${{github.workspace}}/build -G Ninja \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
${{matrix.options}}
- name: Restore cache
uses: actions/cache/restore@v3
with:
key: ccache-linux-${{matrix.tag}}
path: ${{github.workspace}}/ccache
- name: Build
run: |
cmake --build ${{github.workspace}}/build -v -j $(nproc)
- name: Save cache
uses: actions/cache@v3
with:
key: ccache-linux-${{matrix.tag}}
path: ${{github.workspace}}/ccache