forked from man-group/sparrow
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (55 loc) · 1.76 KB
/
analysis.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: cpp-linter-analysis
on: [push, pull_request]
defaults:
run:
shell: bash -e -l {0}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install LLVM and Clang
uses: egor-tensin/setup-clang@v1
with:
version: 18
platform: x64
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout nanoarrow
uses: actions/checkout@v4
with:
repository: apache/arrow-nanoarrow
path: dependencies/tests/nanoarrow
- name: Set conda environment
uses: mamba-org/setup-micromamba@main
with:
environment-name: myenv
environment-file: environment-dev.yml
init-shell: bash
cache-downloads: true
- name: Configure nanoarrow
working-directory: dependencies/tests/nanoarrow
run: |
cmake -G Ninja \
-Bbuild \
${{matrix.sys.config-flags}} \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX
- name: Build nanoarrow
working-directory: dependencies/tests/nanoarrow/build
run: cmake --build . --config Release --target install
- name: Configure using CMake
run: cmake -G Ninja -Bbuild -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DBUILD_TESTS=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
- name: Run C++ analysis
uses: cpp-linter/cpp-linter-action@v2
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version: 18
files-changed-only: false
database: 'build'
style: 'file' # Use .clang-format config file
tidy-checks: '' # Use .clang-tidy config file
step-summary: true
ignore: 'build'
extra-args: '-std=c++20'