Skip to content

Commit a00f6e6

Browse files
authored
Add copyright check (#41)
1 parent 2669dee commit a00f6e6

27 files changed

+2221
-147
lines changed

.bazelversion

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8.3.1

.github/workflows/aarch64-linux.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,3 @@ jobs:
5959
chmod 755 ./downloaded/main_pthread_cpp
6060
./downloaded/main_cpp
6161
./downloaded/main_pthread_cpp
62-
63-
64-

.github/workflows/autosd.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,3 @@ jobs:
3939
- name: Bazel Build (basic)
4040
run: |
4141
bazel build --config target_config_4 -- //:main_cpp //:main_pthread_cpp //:math_lib //:math_lib_shared
42-

.github/workflows/checks.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# *******************************************************************************
2+
# Copyright (c) 2026 Contributors to the Eclipse Foundation
3+
#
4+
# See the NOTICE file(s) distributed with this work for additional
5+
# information regarding copyright ownership.
6+
#
7+
# This program and the accompanying materials are made available under the
8+
# terms of the Apache License Version 2.0 which is available at
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# SPDX-License-Identifier: Apache-2.0
12+
# *******************************************************************************
13+
name: S-CORE CI Checks
14+
on:
15+
pull_request:
16+
push:
17+
branches:
18+
- main
19+
jobs:
20+
copyright-check:
21+
uses: eclipse-score/cicd-workflows/.github/workflows/copyright.yml@main
22+
formatting-check:
23+
uses: eclipse-score/cicd-workflows/.github/workflows/format.yml@main
24+
bzlmod-lock:
25+
uses: eclipse-score/cicd-workflows/.github/workflows/bzlmod-lock-check.yml@c1c90b1a82a1fab0fc202979dde6686b2162d5a8 # v0.0.0
26+
with:
27+
working-directory: .

.github/workflows/x86_64-linux.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,3 @@ jobs:
4242
- name: Bazel Test
4343
run: |
4444
bazel test --config host_config_1 -- //...
45-

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@
1212
# *******************************************************************************
1313

1414
# Bazel
15-
MODULE.bazel.lock
1615
bazel-*

BUILD

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# *******************************************************************************
2+
# Copyright (c) 2026 Contributors to the Eclipse Foundation
3+
#
4+
# See the NOTICE file(s) distributed with this work for additional
5+
# information regarding copyright ownership.
6+
#
7+
# This program and the accompanying materials are made available under the
8+
# terms of the Apache License Version 2.0 which is available at
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# SPDX-License-Identifier: Apache-2.0
12+
# *******************************************************************************
13+
load("@aspect_rules_lint//format:defs.bzl", "format_multirun", "format_test")
14+
load("@score_tooling//:defs.bzl", "copyright_checker")
15+
16+
format_multirun(
17+
name = "format.fix",
18+
python = "@aspect_rules_lint//format:ruff",
19+
starlark = "@buildifier_prebuilt//:buildifier",
20+
visibility = [
21+
"//visibility:public",
22+
],
23+
yaml = "@aspect_rules_lint//format:yamlfmt",
24+
)
25+
26+
format_test(
27+
name = "format.check",
28+
no_sandbox = True,
29+
python = "@aspect_rules_lint//format:ruff",
30+
starlark = "@buildifier_prebuilt//:buildifier",
31+
visibility = [
32+
"//visibility:public",
33+
],
34+
workspace = "//:MODULE.bazel",
35+
yaml = "@aspect_rules_lint//format:yamlfmt",
36+
)
37+
38+
copyright_checker(
39+
name = "copyright",
40+
srcs = [
41+
".github",
42+
"docs",
43+
"examples",
44+
"packages",
45+
"rules",
46+
"templates",
47+
"tools",
48+
"//:BUILD",
49+
"//:MODULE.bazel",
50+
],
51+
config = "@score_tooling//cr_checker/resources:config",
52+
template = "@score_tooling//cr_checker/resources:templates",
53+
visibility = ["//visibility:public"],
54+
)

MODULE.bazel

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module(
2020
# *******************************************************************************
2121
# Common useful functions and rules for Bazel
2222
# *******************************************************************************
23-
bazel_dep(name = "bazel_skylib", version = "1.8.1")
23+
bazel_dep(name = "bazel_skylib", version = "1.8.2")
2424

2525
# *******************************************************************************
2626
# Constraint values for specifying platforms and toolchains
@@ -32,3 +32,10 @@ bazel_dep(name = "score_bazel_platforms", version = "0.1.1")
3232
# C++ Rules for Bazel
3333
# *******************************************************************************
3434
bazel_dep(name = "rules_cc", version = "0.2.14")
35+
36+
# *******************************************************************************
37+
# Needed by S-CORE CI Automatic checks
38+
# *******************************************************************************
39+
bazel_dep(name = "score_tooling", version = "1.1.2")
40+
bazel_dep(name = "aspect_rules_lint", version = "2.3.0")
41+
bazel_dep(name = "buildifier_prebuilt", version = "8.5.1")

0 commit comments

Comments
 (0)