Skip to content

Commit cc72bf2

Browse files
committed
Add copyright check
1 parent 2669dee commit cc72bf2

27 files changed

Lines changed: 2224 additions & 149 deletions

.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: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
score-checks:
21+
uses: eclipse-score/cicd-workflows/.github/workflows/score-pr-checks.yml@main
22+
copyright-check:
23+
uses: eclipse-score/cicd-workflows/.github/workflows/copyright.yml@main
24+
formatting-check:
25+
uses: eclipse-score/cicd-workflows/.github/workflows/format.yml@main
26+
bzlmod-lock:
27+
uses: eclipse-score/cicd-workflows/.github/workflows/bzlmod-lock-check.yml@c1c90b1a82a1fab0fc202979dde6686b2162d5a8 # v0.0.0
28+
with:
29+
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: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@
1111
# SPDX-License-Identifier: Apache-2.0
1212
# *******************************************************************************
1313

14-
module(
15-
name = "score_bazel_cpp_toolchains",
14+
module(name = "score_bazel_cpp_toolchains",
1615
version = "0.3.1",
1716
compatibility_level = 0,
1817
)
1918

2019
# *******************************************************************************
2120
# Common useful functions and rules for Bazel
2221
# *******************************************************************************
23-
bazel_dep(name = "bazel_skylib", version = "1.8.1")
22+
bazel_dep(name = "bazel_skylib", version = "1.8.2")
2423

2524
# *******************************************************************************
2625
# Constraint values for specifying platforms and toolchains
@@ -32,3 +31,10 @@ bazel_dep(name = "score_bazel_platforms", version = "0.1.1")
3231
# C++ Rules for Bazel
3332
# *******************************************************************************
3433
bazel_dep(name = "rules_cc", version = "0.2.14")
34+
35+
# *******************************************************************************
36+
# Needed by S-CORE CI Automatic checks
37+
# *******************************************************************************
38+
bazel_dep(name = "score_tooling", version = "1.1.2")
39+
bazel_dep(name = "aspect_rules_lint", version = "2.3.0")
40+
bazel_dep(name = "buildifier_prebuilt", version = "8.5.1")

0 commit comments

Comments
 (0)