-
Notifications
You must be signed in to change notification settings - Fork 36
35 lines (33 loc) · 831 Bytes
/
ci.yml
File metadata and controls
35 lines (33 loc) · 831 Bytes
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
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt install -y cppcheck clang-format
- name: Lint
run: |
make CLANG_FORMAT=clang-format fmt && git diff --exit-code
cppcheck --error-exitcode=1 src/
build:
strategy:
matrix:
platform: ["ubuntu-20.04", "ubuntu-22.04"]
env:
- FAULTS: conservative
- FAULTS:
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt install -y libelf-dev ruby build-essential linux-headers-$(uname -r)
- name: Build
env:
FAULTS: ${{ matrix.env.FAULTS }}
run: make