👷 add REUSE compliance check

This commit is contained in:
Niels Lohmann 2022-06-18 23:50:44 +02:00
parent eecc595945
commit e2a0c11316
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
2 changed files with 13 additions and 15 deletions

View File

@ -35,7 +35,7 @@ jobs:
container: ghcr.io/nlohmann/json-ci:v2.4.0
strategy:
matrix:
target: [ci_clang_tidy, ci_cppcheck, ci_test_valgrind, ci_test_clang_sanitizer, ci_test_amalgamation, ci_clang_analyze, ci_cpplint, ci_cmake_flags, ci_single_binaries, ci_reproducible_tests, ci_non_git_tests, ci_offline_testdata, ci_infer, ci_reuse_compliance]
target: [ci_clang_tidy, ci_cppcheck, ci_test_valgrind, ci_test_clang_sanitizer, ci_test_amalgamation, ci_clang_analyze, ci_cpplint, ci_cmake_flags, ci_single_binaries, ci_reproducible_tests, ci_non_git_tests, ci_offline_testdata, ci_infer]
steps:
- uses: actions/checkout@v3
- name: cmake
@ -134,3 +134,15 @@ jobs:
run: |
. /opt/intel/oneapi/setvars.sh
cmake --build build --target ci_icpc
ci_reuse_compliance:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: venv
run: python3 -mvenv venv
- name: install REUSE tool
run: venv/bin/pip3 install reuse
- name: REUSE lint
run: venv/bin/reuse lint

View File

@ -934,20 +934,6 @@ add_custom_target(ci_icpc
COMMENT "Compile and test with ICPC"
)
###############################################################################
# REUSE Compliance check
###############################################################################
add_custom_target(ci_reuse_compliance
COMMAND apt-get update
COMMAND apt-get install -y python3.8-venv
COMMAND ${Python3_EXECUTABLE} -mvenv venv
COMMAND venv/bin/pip3 install reuse
COMMAND venv/bin/reuse lint
COMMENT "Check REUSE compliance"
)
###############################################################################
# Clean up all generated files.
###############################################################################