forked from srg-imperial/SaBRe
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (32 loc) · 815 Bytes
/
ci.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
name: ci
on:
push:
pull_request:
jobs:
check-format:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- name: Checkout Sources
uses: actions/checkout@v2
- name: Run clang-format
uses: jidicula/[email protected]
with:
clang-format-version: '12'
check-path: '.'
exclude-regex: '(libsqlfs|^./patchelf/elf.h$)'
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Sources
uses: actions/checkout@v2
- name: Install CMake
uses: lukka/get-cmake@latest
- name: Install libelf
run: sudo apt install -y libelf-dev
- name: Run CMake
uses: lukka/run-cmake@v10
with:
configurePreset: 'ninja'
buildPreset: 'ninja'