forked from fwbuilder/fwbuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (52 loc) · 1.39 KB
/
linux.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
name: Linux
on: [push]
jobs:
debug-unit_tests:
runs-on: ubuntu-latest
strategy:
matrix:
config:
- {
id: 'ubuntu-20.04',
name: "Ubuntu 20.04",
docker_image: "fwbuilder/ubuntu:20.04",
unit_tests: true
}
- {
id: 'ubuntu-18.04',
name: "Ubuntu 18.04",
docker_image: "fwbuilder/ubuntu:18.04",
unit_tests: true
}
- {
id: 'ubuntu-16.04',
name: "Ubuntu 16.04",
docker_image: "fwbuilder/ubuntu:16.04",
unit_tests: false
}
container:
image: ${{ matrix.config.docker_image }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Compilation cache
uses: actions/cache@v2
with:
path: ~/.ccache
key: ${{ matrix.config.id }}-ccache-${{ github.sha }}
restore-keys: |
${{ matrix.config.id }}-ccache
- name: Configure
run: |
mkdir -p build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug
- name: Build
run: |
cd build
make -j$(nproc)
make install
- name: Run unit tests
if: ${{ matrix.config.unit_tests == true }}
run: |
cd build
QT_QPA_PLATFORM=vnc ctest --verbose