Skip to content

Commit 2f2b6ef

Browse files
committed
move to ci_branch_main
1 parent e1720d2 commit 2f2b6ef

2 files changed

Lines changed: 63 additions & 11 deletions

File tree

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
name: CI branch `main`
19+
20+
on:
21+
workflow_dispatch:
22+
pull_request:
23+
# push:
24+
# branches:
25+
# - main
26+
27+
jobs:
28+
prepare:
29+
name: Prepare
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v5
33+
with:
34+
fetch-depth: 0
35+
fetch-tags: true
36+
- name: Detect skip ci and docs changes
37+
id: detect
38+
uses: ./.github/actions/detect-skip-ci
39+
with:
40+
github_event_name: ${{ github.event_name }}
41+
pr_base_ref: ${{ github.event.pull_request.base.ref || '' }}
42+
pr_head_sha: ${{ github.event.pull_request.head.sha || '' }}
43+
44+
clang-tidy:
45+
needs: [prepare]
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v5
49+
with:
50+
submodules: recursive
51+
fetch-depth: 0
52+
fetch-tags: true
53+
- name: Set up uv
54+
uses: astral-sh/setup-uv@b75a909f75acd358c2196fb9a5f1299a9a8868a4 # v6.7.0
55+
- uses: ./.github/actions/detect-env-vars
56+
id: env_vars
57+
- name: Run clang-tidy
58+
run: |
59+
uv run --no-project --with "clang-tidy==21.1.1" \
60+
python tests/lint/clang_tidy_precommit.py \
61+
--build-dir=build-pre-commit \
62+
--jobs=${{ steps.env_vars.outputs.cpu_count }} \
63+
./src/ ./include ./tests

.github/workflows/ci_test.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,6 @@ jobs:
5656
fetch-depth: 0
5757
fetch-tags: true
5858
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
59-
- name: Set up uv
60-
uses: astral-sh/setup-uv@b75a909f75acd358c2196fb9a5f1299a9a8868a4 # v6.7.0
61-
- uses: ./.github/actions/detect-env-vars
62-
id: env_vars
63-
- name: Run clang-tidy
64-
run: |
65-
uv run --no-project --with "clang-tidy==21.1.1" \
66-
python tests/lint/clang_tidy_precommit.py \
67-
--build-dir=build-pre-commit \
68-
--jobs=${{ steps.env_vars.outputs.cpu_count }} \
69-
./src/ ./include ./tests
7059

7160
doc:
7261
needs: [lint, prepare]

0 commit comments

Comments
 (0)