blob: 6d41378f178414c0ebb21661e331dd392a9c4b06 (
plain) (
blame)
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
|
name: Lint dnbd3
on:
push:
branches:
- master
pull_request:
jobs:
lint:
name: Lint dnbd3
runs-on: ubuntu-22.04
steps:
- name: Install dnbd3 dependencies
run: |
sudo apt-get update -y -qq
sudo apt-get install -y -qq make \
clang-format \
linux-headers-generic \
libfuse-dev \
libjansson-dev \
rpm
- name: Checkout dnbd3 repository
uses: actions/checkout@v4
- name: Fetch dnbd3 repository tags
run: git fetch --prune --unshallow
- name: Configure dnbd3 build
run: |
cmake -B ${{ github.workspace }}/build \
-S ${{ github.workspace }} \
-D DNBD3_BENCHMARK=ON
- name: Lint dnbd3 artifacts
working-directory: ${{ github.workspace }}/build
run: make lint
|