Skip to content

Commit d27f555

Browse files
committed
final version v3
1 parent ec55d94 commit d27f555

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/reusable_checks.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,10 @@ jobs:
5252
run: cmake --build build --target black-format-check
5353

5454
- name: Run check-license
55-
run: |
56-
bash ./check_license/check-headers.sh ./ "Apache-2.0 WITH LLVM-exception" -v
55+
run: cmake --build build --target check-license
5756

5857
- name: Run copyright-format
59-
run: |
60-
bash ./check_license/check-headers.sh ./ "Apache-2.0 WITH LLVM-exception" -d
58+
run: cmake --build build --target copyright-format
6159

6260
- name: Run a spell check
6361
uses: crate-ci/typos@b63f421581dce830bda2f597a678cb7776b41877 # v1.18.2

CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,15 @@ else()
175175
add_custom_target(jemalloc_prod
176176
DEPENDS ${jemalloc_targ_BINARY_DIR}/lib/libjemalloc.a)
177177

178+
add_custom_target(
179+
check-license
180+
COMMAND ${UMF_CMAKE_SOURCE_DIR}/check_license/check-headers.sh
181+
${UMF_CMAKE_SOURCE_DIR} Apache-2.0 WITH LLVM-exception -v)
182+
add_custom_target(
183+
copyright-format
184+
COMMAND ${UMF_CMAKE_SOURCE_DIR}/check_license/check-headers.sh
185+
${UMF_CMAKE_SOURCE_DIR} Apache-2.0 WITH LLVM-exception -d)
186+
178187
add_library(jemalloc INTERFACE)
179188
target_link_libraries(
180189
jemalloc INTERFACE ${jemalloc_targ_BINARY_DIR}/lib/libjemalloc.a)

0 commit comments

Comments
 (0)