Skip to content

Commit 99d2028

Browse files
author
junchao
committed
merge master
2 parents 23a3103 + 3d2d934 commit 99d2028

File tree

309 files changed

+5351
-12697
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

309 files changed

+5351
-12697
lines changed

.bazelversion

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

.github/workflows/build-push.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
120
name: ci
221

322
on:

.github/workflows/build.yml

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
120
name: bazel-build CI
221

322
on:
@@ -15,12 +34,20 @@ jobs:
1534
runs-on: ubuntu-latest
1635
steps:
1736
- uses: actions/checkout@v1
18-
1937
- name: Mount bazel cache
2038
uses: actions/cache@v3
2139
with:
2240
path: "/home/runner/.cache/bazel"
2341
key: bazel
24-
42+
- name: Set up Python
43+
uses: actions/setup-python@v5
44+
with:
45+
python-version: '3.10'
2546
- name: build
26-
run: bazel build ...
47+
shell: bash
48+
env:
49+
CC: gcc-11
50+
CXX: g++-11
51+
run: |
52+
sudo apt install gcc-11 g++-11
53+
bazel build ...

.github/workflows/license.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
20+
name: Check Apache License
21+
22+
on:
23+
push
24+
25+
jobs:
26+
ubuntu-build:
27+
name: check license
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v2
32+
with:
33+
repository: ${{github.repository}}
34+
ref: ${{ env.BRANCH_NAME }}
35+
36+
- name: Check License Header
37+
uses: apache/skywalking-eyes/header@main

.github/workflows/loc.yml

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
120
name: LOC
221

322
on:
4-
push:
5-
branches:
23+
push:
24+
branches:
625
- master
7-
26+
827
jobs:
928
build:
1029
runs-on: ubuntu-latest
@@ -16,9 +35,15 @@ jobs:
1635
repository: ${{github.repository}}
1736
ref: ${{ env.BRANCH_NAME }}
1837

38+
- name: NPM Init
39+
run: npm init -y
40+
41+
- name: NPM Install
42+
run: npm install badgen @actions/core glob-gitignore
43+
1944
- name: Launch the local action
20-
uses: ./ # Uses an action in the root directory
2145
id: badge
46+
uses: ./third_party/loc_script/ # Uses an action in the root directory
2247
with:
2348
debug: true
2449
directory: ./

.github/workflows/main.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
120
name: Doxygen Action
221

322
on:

.github/workflows/ut.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
120
name: Unite Test
221

322
on:
@@ -20,5 +39,15 @@ jobs:
2039
with:
2140
path: "/home/runner/.cache/bazel"
2241
key: bazel
42+
- name: Set up Python
43+
uses: actions/setup-python@v5
44+
with:
45+
python-version: '3.10'
2346
- name: build
24-
run: bazel test ...
47+
shell: bash
48+
env:
49+
CC: gcc-11
50+
CXX: g++-11
51+
run: |
52+
sudo apt install gcc-11 g++-11
53+
bazel build ...

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ bazel-*
1111
venv
1212
sdk_validator/venv
1313
__pycache__
14+
MODULE.*
15+
apache_release

.licenserc.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
header:
2+
license:
3+
spdx-id: Apache-2.0
4+
copyright-owner: Apache Software Foundation
5+
6+
paths-ignore:
7+
- '.*'
8+
- '.**/**'
9+
- 'repositories.bzl'
10+
- 'CNAME'
11+
- 'WORKSPACE'
12+
- '**/*.conf'
13+
- '**/*.config'
14+
- '**/*.json'
15+
- '**/*.sol'
16+
- '**/*.pri'
17+
- '**/*.pub'
18+
- 'Doxyfile'
19+
- 'header'
20+
- 'dev/.rat-excludes'
21+
- '**/*.md'
22+
- 'DISCLAIMER-WIP'
23+
- 'NOTICE'
24+
- 'LICENSE'
25+
- 'documents/doxygen/.gitignore'
26+
- 'third_party/loc_script/src/index.js'
27+
28+
29+
30+
comment: on-failure
31+

BUILD.bazel

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
120
package(default_visibility = ["//visibility:public"])
221

322
load("@rules_foreign_cc//foreign_cc:defs.bzl", "make")

0 commit comments

Comments
 (0)