-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (40 loc) · 1.05 KB
/
Copy pathbuild_tests.yml
File metadata and controls
49 lines (40 loc) · 1.05 KB
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
name: Build Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
linux-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: setup environment
run: |
export DEBIAN_FRONTEND="noninteractive"
mkdir build
sudo apt-get -y update
- name: installing dependecies
run: |
echo y | sudo ./script/installation/packages.sh all
- name: build
working-directory: ./build
run: |
cmake -GNinja ..
ninja -j2
- name: check linting & formatting
working-directory: ./build
run: |
ninja check-format
ninja check-lint
ninja check-clang-tidy
- name: run unit-tests
working-directory: ./build
run: |
ninja test
- name: codecov report
working-directory: ./build
run: |
bash <(curl -s https://codecov.io/bash)