-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (58 loc) · 1.64 KB
/
build-job.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
name: Marsvin matrix library check jobs
on:
pull_request:
branches:
- main
jobs:
build-and-run-unit-test:
name: Build and Run unit-test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install gtest
run: |
git clone -q https://github.com/google/googletest.git
cd googletest
mkdir -p build
cd build
cmake ..
make
sudo make install
- name: Build Project
run: |
rm -rf build
mkdir -p build
cd build
cmake ..
make
- name: Run unit-test
run: |
cd build
ctest --verbose
clang-format-check:
name: Run clang-format-15
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install clang-format-15
run: |
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
sudo apt-add-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-15 main"
sudo apt-get update
sudo apt-get install -y clang-15 clang-format-15
- name: Run clang-format-15 in source code
run: |
clang-format-15 --Werror --dry-run core/include/marsvin/**/**.hpp core/src/*
doxygen-build:
name: Build Doxygen documentation
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install Doxygen
run: |
sudo apt-get update
sudo apt-get install -y doxygen doxygen-doc graphviz
- name: Build documentation
run: |
cd documentation
doxygen