-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.32 KB
/
build.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
name: Build YANET
on:
push:
branches: ["main"]
# paths: ["**.h", "**.c", "**/meson.build"]
pull_request:
branches: ["main"]
# paths: ["**.h", "**.c", "**/meson.build"]
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: meson clang python3-pyelftools libnuma-dev libpcap-dev git
version: 1.0
- uses: actions/checkout@v4
with:
submodules: true
- uses: hendrikmuhs/[email protected]
name: ccache
with:
key: ${{ runner.os }}-build-cache
- run: |
meson setup build -Dbuildtype=debug
meson compile -C build
- uses: cpp-linter/cpp-linter-action@main
id: linter
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
database: build
style: file
# Use .clang-tidy config file.
tidy-checks: ''
version: 19
thread-comments: false
step-summary: true
tidy-review: false
format-review: false
files-changed-only: false
ignore: '.github|build'
- name: Check code style violation
if: steps.linter.outputs.clang-tidy-checks-failed > 0
run: exit 1