@@ -14,33 +14,42 @@ concurrency:
14
14
jobs :
15
15
review :
16
16
runs-on : ubuntu-latest
17
+
17
18
steps :
18
19
- name : Checkout PR branch
19
20
uses : actions/checkout@v4
20
21
22
+ - name : Setup Python
23
+ uses : actions/setup-python@v5
24
+ with :
25
+ python-version : " 3.11"
26
+
27
+ - name : install mamba
28
+ uses : mamba-org/setup-micromamba@main
29
+ with :
30
+ environment-file : environment-dev.yml
31
+ init-shell : >-
32
+ bash
33
+ environment-name : xeus-cpp
34
+
21
35
- name : Install LLVM and Clang
22
- uses : KyleMayes/install-llvm-action@v2
36
+ uses : KyleMayes/install-llvm-action@v2.0.2
23
37
with :
24
- version : " 18.1.3"
38
+ version : " 16.0.0"
39
+
40
+ - name : run git config command
41
+ run : |
42
+ git config --global --add safe.directory /github/workspace
25
43
26
44
- name : Run clang-tidy
27
45
28
- id : review
46
+
29
47
with :
30
48
build_dir : build
31
49
apt_packages : libxml2,libxml2-dev,libtinfo-dev,zlib1g-dev,libzstd-dev,curl
32
50
exclude : " test/*,unittests/*,benchmark/*,demos/*"
33
51
split_workflow : true
34
- cmake_command : >
35
- set -x &&
36
- mkdir micromamba && cd micromamba && curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba &&
37
- export MAMBA_ROOT_PREFIX=/github/workspace/micromamba &&
38
- eval "$(./bin/micromamba shell hook -s posix)" &&
39
- micromamba create -n xeus-cpp -y --log-level warning -f /github/workspace/environment-dev.yml &&
40
- micromamba activate xeus-cpp &&
41
- cd .. &&
42
- git config --global --add safe.directory /github/workspace &&
43
- cmake . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=On
52
+ cmake_command : cmake . -B build -DCMAKE_PREFIX_PATH=/home/runner/micromamba/envs/xeus-cpp -DCMAKE_EXPORT_COMPILE_COMMANDS=On
44
53
45
54
- name : Upload artifacts
46
55
uses :
ZedThree/clang-tidy-review/[email protected]
0 commit comments