File tree Expand file tree Collapse file tree 2 files changed +27
-7
lines changed Expand file tree Collapse file tree 2 files changed +27
-7
lines changed Original file line number Diff line number Diff line change 24
24
shared_library : ' OFF'
25
25
- os : ' ubuntu-22.04'
26
26
build_type : Release
27
- compiler : {c: clang, cxx: clang++}
27
+ compiler : {c: clang, cxx: clang++}
28
28
shared_library : ' OFF'
29
29
- os : ' ubuntu-22.04'
30
30
build_type : Release
@@ -156,14 +156,10 @@ jobs:
156
156
cmake
157
157
-B ${{env.BUILD_DIR}}
158
158
-DCMAKE_BUILD_TYPE=Release
159
- -DUMF_FORMAT_CODE_STYLE=ON
159
+ -DUMF_FORMAT_CODE_STYLE=OFF
160
160
-DUMF_DEVELOPER_MODE=ON
161
161
-DUMF_ENABLE_POOL_TRACKING=ON
162
162
163
- - name : Run code-style check
164
- run : |
165
- cmake --build ${{env.BUILD_DIR}} --target clang-format-check
166
-
167
163
- name : Build UMF
168
164
run : |
169
165
cmake --build ${{env.BUILD_DIR}} -j $(sysctl -n hw.logicalcpu)
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