Skip to content

Commit 8f71fd7

Browse files
authored
Check license header (#205)
1 parent 74f2d4c commit 8f71fd7

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/license.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This workflow checks that all .h/.cpp files have the SPDX copyright header at the top
2+
name: Copyright
3+
on: [push, pull_request]
4+
jobs:
5+
check-license-lines:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- name: Setup Deno
10+
uses: denoland/setup-deno@v1
11+
with:
12+
deno-version: v1.x
13+
- name: Check License
14+
run: deno run --allow-read jsr:@kt3k/[email protected]

.licenserc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"src/*.{h,hpp,c,cpp}": [
3+
"SPDX-FileCopyrightText: Copyright (c) Stanford University, The Regents of the University of California, and others.",
4+
"SPDX-License-Identifier: BSD-3-Clause"
5+
],
6+
"ignore": []
7+
}

0 commit comments

Comments
 (0)