-
Notifications
You must be signed in to change notification settings - Fork 28
57 lines (45 loc) · 1.21 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
---
name: CI
on:
- push
jobs:
Build:
name: Build (ubuntu-${{ matrix.image_tag }}) (${{ matrix.compiler }})
runs-on: ubuntu-${{ matrix.image_tag }}
strategy:
fail-fast: false
matrix:
image_tag:
- 20.04
- 22.04
compiler:
- GNU
- LLVM
env:
CXX: ${{ matrix.compiler == 'LLVM' && 'clang++' || 'g++' }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get -qq update
sudo apt-get -qq install \
libbluetooth-dev \
libdbus-1-dev \
cmake \
${{ matrix.compiler == 'LLVM' && 'clang' || 'g++ gcc' }}
- name: Configure
run: cmake -S . -B build
- name: Build
run: cmake --build build --config Release
- name: Test
working-directory: build
run: ctest --verbose
- name: Make `deb` file
working-directory: build
run: cpack .
- name: Upload `deb` file
uses: actions/upload-artifact@v3
with:
name: ubuntu-${{ matrix.image_tag }} ${{ matrix.compiler }}
path: build/goveebttemplogger_*.deb