-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 958 Bytes
/
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
name: Marsvin matrix library check jobs
on:
pull_request:
branches:
- main
jobs:
build-project:
name: Build and Run unit-test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Build Project
run: |
rm -rf build
mkdir -p build
cd build
cmake ..
make
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/**/*.*pp