Skip to content

Commit

Permalink
CI for license check (#78)
Browse files Browse the repository at this point in the history
* license check CI

* fix ci

* check both headers and source

* add SPDX identifiers

* trigger on only master
  • Loading branch information
koide3 authored Jun 27, 2024
1 parent 45b0b29 commit 765da6f
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/license.yml
Original file line number Diff line number Diff line change
@@ -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'
2 changes: 2 additions & 0 deletions include/small_gicp/ann/flat_container.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-FileCopyrightText: Copyright 2024 Kenji Koide
// SPDX-License-Identifier: MIT
#pragma once

#include <queue>
Expand Down
2 changes: 2 additions & 0 deletions include/small_gicp/ann/knn_result.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-FileCopyrightText: Copyright 2024 Kenji Koide
// SPDX-License-Identifier: MIT
#pragma once

#include <array>
Expand Down
2 changes: 2 additions & 0 deletions include/small_gicp/factors/robust_kernel.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-FileCopyrightText: Copyright 2024 Kenji Koide
// SPDX-License-Identifier: MIT
#pragma once

#include <Eigen/Core>
Expand Down

0 comments on commit 765da6f

Please sign in to comment.