File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,34 @@ jobs:
48
48
- name : Build
49
49
run : >
50
50
cmake --build ${{github.workspace}}/build --config Release -j ${{matrix.nproc}}
51
+
52
+ CodeStyle :
53
+ name : Coding style
54
+ runs-on : ubuntu-latest
55
+
56
+ steps :
57
+ - name : Checkout repository
58
+ uses : actions/checkout@v4
59
+
60
+ - name : Install apt packages
61
+ run : |
62
+ sudo apt-get update
63
+ sudo apt-get install -y cmake clang-format-15
64
+
65
+ - name : Configure CMake
66
+ run : >
67
+ cmake
68
+ -B ${{github.workspace}}/build
69
+ -DUMF_FORMAT_CODE_STYLE=ON
70
+
71
+ - name : Build
72
+ run : >
73
+ cmake --build build --target clang-format-check
74
+
51
75
Spellcheck :
52
76
uses : oneapi-src/unified-memory-framework/.github/workflows/spellcheck.yml@main
53
77
Build :
54
- needs : [Spellcheck, FastBuild]
78
+ needs : [Spellcheck, FastBuild, CodeStyle ]
55
79
uses : oneapi-src/unified-memory-framework/.github/workflows/basic.yml@main
56
80
Benchmark :
57
81
needs : [Build]
You can’t perform that action at this time.
0 commit comments