File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Style
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ - main
8
+ pull_request :
9
+ branches :
10
+ - master
11
+ - main
12
+
13
+ env :
14
+ CPM_SOURCE_CACHE : ${{ github.workspace }}/cpm_modules
15
+
16
+ jobs :
17
+ build :
18
+ runs-on : ubuntu-latest
19
+
20
+ steps :
21
+ - uses : actions/checkout@v3
22
+
23
+ - uses : actions/cache@v3
24
+ with :
25
+ path : " **/cpm_modules"
26
+ key : ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
27
+
28
+ - name : Add conda to system path
29
+ run : |
30
+ # $CONDA is an environment variable pointing to the root of the miniconda directory
31
+ echo $CONDA/bin >> $GITHUB_PATH
32
+
33
+ - name : Install dependent software
34
+ run : |
35
+ conda info
36
+ conda env update --file environment-dev.yml --name base
37
+
38
+ - name : Before Install
39
+ run : |
40
+ sudo apt-get install g++-10
41
+ sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 90
42
+
43
+ - name : Install format dependencies
44
+ run : pip3 install clang-format==18.1.2 cmake_format==0.6.13 pyyaml
45
+
46
+ - name : configure
47
+ run : cmake -S. -Bbuild
48
+
49
+ - name : check style
50
+ run : cmake --build build --target check-format
You can’t perform that action at this time.
0 commit comments