forked from CNugteren/CLBlast
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1.01 KB
/
lint.yml
File metadata and controls
39 lines (33 loc) · 1.01 KB
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: Lint
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -yq ninja-build ocl-icd-opencl-dev opencl-c-headers libopenblas-dev --no-install-recommends
- name: Configure CMake
run: |
export CC=${{ matrix.config.c_compiler }}
export CXX=${{ matrix.config.cpp_compiler }}
cmake -S . -B build -G Ninja -DTESTS=ON -DCLIENTS=ON -DSAMPLES=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
- name: Run linter
uses: cpp-linter/cpp-linter-action@v2
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tidy-checks: ''
style: 'file'
database: 'build'
- name: Fail fast?!
if: steps.linter.outputs.checks-failed > 0
run: exit 1