Skip to content

Commit

Permalink
repo: setup copywrite stuff (#16)
Browse files Browse the repository at this point in the history
* repo: add copywrite config

* repo: add mpl copyright headers

* ci: setup copywrite action
  • Loading branch information
shoenig authored Nov 9, 2023
1 parent aa914a1 commit ea38aed
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .copywrite.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
schema_version = 1

project {
license = "MPL-2.0"
copyright_holder = "The M1CPU Authors"
copyright_year = 2022
header_ignore = [
".golangci.yaml",
".copywrite.hcl",
".github/**",
]
}
8 changes: 8 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Run CI Tests
on: [push]
jobs:
run-copywrite:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: hashicorp/[email protected]
- name: verify copyright
run: |
copywrite headers --plan
run-lint:
runs-on: [macos-latest]
steps:
Expand Down
3 changes: 3 additions & 0 deletions cpu.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The M1CPU Authors
// SPDX-License-Identifier: MPL-2.0

//go:build darwin && arm64 && cgo

package m1cpu
Expand Down
3 changes: 3 additions & 0 deletions cpu_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The M1CPU Authors
// SPDX-License-Identifier: MPL-2.0

//go:build darwin && arm64 && cgo

package m1cpu
Expand Down
3 changes: 3 additions & 0 deletions examples_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The M1CPU Authors
// SPDX-License-Identifier: MPL-2.0

package m1cpu

import (
Expand Down
3 changes: 3 additions & 0 deletions incompatible.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The M1CPU Authors
// SPDX-License-Identifier: MPL-2.0

//go:build !darwin || !arm64 || !cgo

package m1cpu
Expand Down
3 changes: 3 additions & 0 deletions incompatible_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) The M1CPU Authors
// SPDX-License-Identifier: MPL-2.0

//go:build !darwin || !arm64 || !cgo

package m1cpu
Expand Down

0 comments on commit ea38aed

Please sign in to comment.