CI for license check (#78)

* license check CI

* fix ci

* check both headers and source

* add SPDX identifiers

* trigger on only master
This commit is contained in:
koide3 2024-06-27 12:06:17 +09:00 committed by GitHub
parent 45b0b29af3
commit 765da6f68d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 27 additions and 0 deletions

21
.github/workflows/license.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: license
on:
push:
branches: [ master ]
paths-ignore: '**.md'
pull_request:
branches: [ master ]
paths-ignore: '**.md'
jobs:
license_check:
name: License check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check license
run: |
find include/small_gicp src/small_gicp -type f | xargs -I filename bash -c 'if ! grep -q SPDX-License-Identifier filename; then echo filename : lisence not found; exit 1; fi'

View File

@ -1,3 +1,5 @@
// SPDX-FileCopyrightText: Copyright 2024 Kenji Koide
// SPDX-License-Identifier: MIT
#pragma once
#include <queue>

View File

@ -1,3 +1,5 @@
// SPDX-FileCopyrightText: Copyright 2024 Kenji Koide
// SPDX-License-Identifier: MIT
#pragma once
#include <array>

View File

@ -1,3 +1,5 @@
// SPDX-FileCopyrightText: Copyright 2024 Kenji Koide
// SPDX-License-Identifier: MIT
#pragma once
#include <Eigen/Core>