Skip to content

Commit 8ff6889

Browse files
github-actionsgithub-actions[bot]
github-actions
authored andcommitted
chore: sync files
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 0831075 commit 8ff6889

13 files changed

+81
-294
lines changed

.github/workflows/check-build-depends.yaml

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# This file is automatically synced from:
2-
# https://github.com/autowarefoundation/sync-file-templates
3-
# To make changes, update the source repository and follow the guidelines in its README.
4-
51
name: check-build-depends
62

73
on:
@@ -11,7 +7,7 @@ on:
117

128
jobs:
139
check-build-depends:
14-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-latest
1511
container: ${{ matrix.container }}
1612
strategy:
1713
fail-fast: false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: clang-tidy-differential
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
- labeled
10+
11+
jobs:
12+
make-sure-label-is-present:
13+
uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1
14+
with:
15+
label: tag:run-clang-tidy-differential
16+
17+
clang-tidy-differential:
18+
needs: make-sure-label-is-present
19+
if: ${{ needs.make-sure-label-is-present.outputs.result == 'true' }}
20+
runs-on: ubuntu-latest
21+
container: ghcr.io/autowarefoundation/autoware:universe-devel-cuda
22+
steps:
23+
- name: Set PR fetch depth
24+
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
25+
26+
- name: Checkout PR branch and all PR commits
27+
uses: actions/checkout@v4
28+
with:
29+
ref: ${{ github.event.pull_request.head.sha }}
30+
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
31+
32+
- name: Show disk space before the tasks
33+
run: df -h
34+
35+
- name: Remove exec_depend
36+
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
37+
38+
- name: Get modified packages
39+
id: get-modified-packages
40+
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1
41+
42+
- name: Get modified files
43+
id: get-modified-files
44+
uses: tj-actions/changed-files@v42
45+
with:
46+
files: |
47+
**/*.cpp
48+
**/*.hpp
49+
50+
- name: Run clang-tidy
51+
if: ${{ steps.get-modified-files.outputs.all_changed_files != '' }}
52+
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1
53+
with:
54+
rosdistro: humble
55+
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
56+
target-files: ${{ steps.get-modified-files.outputs.all_changed_files }}
57+
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
58+
build-depends-repos: build_depends.repos
59+
60+
- name: Show disk space after the tasks
61+
run: df -h

.github/workflows/clang-tidy-pr-comments-manually.yaml

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# This file is automatically synced from:
2-
# https://github.com/autowarefoundation/sync-file-templates
3-
# To make changes, update the source repository and follow the guidelines in its README.
4-
51
name: clang-tidy-pr-comments-manually
62

73
on:
@@ -12,10 +8,10 @@ on:
128
required: true
139
jobs:
1410
clang-tidy-pr-comments-manually:
15-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-latest
1612
steps:
1713
- name: Check out repository
18-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1915

2016
- name: Download analysis results
2117
run: |
@@ -40,7 +36,7 @@ jobs:
4036
4137
- name: Check out PR head
4238
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
43-
uses: actions/checkout@v3
39+
uses: actions/checkout@v4
4440
with:
4541
repository: ${{ steps.set-variables.outputs.pr-head-repo }}
4642
ref: ${{ steps.set-variables.outputs.pr-head-ref }}

.github/workflows/clang-tidy-pr-comments.yaml

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# This file is automatically synced from:
2-
# https://github.com/autowarefoundation/sync-file-templates
3-
# To make changes, update the source repository and follow the guidelines in its README.
4-
51
name: clang-tidy-pr-comments
62

73
on:
@@ -14,10 +10,10 @@ on:
1410
jobs:
1511
clang-tidy-pr-comments:
1612
if: ${{ github.event.workflow_run.event == 'pull_request' && contains(fromJson('["success", "failure"]'), github.event.workflow_run.conclusion) }}
17-
runs-on: ubuntu-22.04
13+
runs-on: ubuntu-latest
1814
steps:
1915
- name: Check out repository
20-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
2117

2218
- name: Download analysis results
2319
run: |
@@ -41,7 +37,7 @@ jobs:
4137
4238
- name: Check out PR head
4339
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
44-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
4541
with:
4642
repository: ${{ steps.set-variables.outputs.pr-head-repo }}
4743
ref: ${{ steps.set-variables.outputs.pr-head-ref }}

.github/workflows/delete-closed-pr-docs.yaml

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# This file is automatically synced from:
2-
# https://github.com/autowarefoundation/sync-file-templates
3-
# To make changes, update the source repository and follow the guidelines in its README.
4-
51
name: delete-closed-pr-docs
62

73
on:
@@ -11,7 +7,7 @@ on:
117

128
jobs:
139
delete-closed-pr-docs:
14-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-latest
1511
steps:
1612
- name: Check out repository
1713
uses: actions/checkout@v3

.github/workflows/deploy-docs.yaml

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# This file is automatically synced from:
2-
# https://github.com/autowarefoundation/sync-file-templates
3-
# To make changes, update the source repository and follow the guidelines in its README.
4-
51
name: deploy-docs
62

73
on:
@@ -31,7 +27,7 @@ jobs:
3127
deploy-docs:
3228
needs: prevent-no-label-execution
3329
if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }}
34-
runs-on: ubuntu-22.04
30+
runs-on: ubuntu-latest
3531
steps:
3632
- name: Check out repository
3733
uses: actions/checkout@v3

.github/workflows/pre-commit.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# This file is automatically synced from:
2-
# https://github.com/autowarefoundation/sync-file-templates
3-
# To make changes, update the source repository and follow the guidelines in its README.
4-
51
name: pre-commit
62

73
on:

.github/workflows/spell-check-daily.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
with:
2222
local-cspell-json: .cspell.json
2323
incremental-files-only: false
24-
cspell-json-url: https://raw.githubusercontent.com/tier4/autoware-spell-check-dict/main/.cspell.json
24+
cspell-json-url: https://raw.githubusercontent.com/autowarefoundation/autoware-spell-check-dict/main/.cspell.json
2525
dict-packages: |
2626
https://github.com/autowarefoundation/autoware-spell-check-dict
2727
https://github.com/tier4/cspell-dicts

.github/workflows/update-codeowners-from-packages.yaml

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# This file is automatically synced from:
2-
# https://github.com/autowarefoundation/sync-file-templates
3-
# To make changes, update the source repository and follow the guidelines in its README.
4-
51
name: update-codeowners-from-packages
62

73
on:
@@ -18,7 +14,7 @@ jobs:
1814
update-codeowners-from-packages:
1915
needs: check-secret
2016
if: ${{ needs.check-secret.outputs.set == 'true' }}
21-
runs-on: ubuntu-22.04
17+
runs-on: ubuntu-latest
2218
steps:
2319
- name: Generate token
2420
id: generate-token

.pre-commit-config.yaml

+5-15
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# This file is automatically synced from:
2-
# https://github.com/autowarefoundation/sync-file-templates
3-
# To make changes, update the source repository and follow the guidelines in its README.
4-
51
ci:
62
autofix_commit_msg: "style(pre-commit): autofix"
73

@@ -38,7 +34,7 @@ repos:
3834
- id: yamllint
3935

4036
- repo: https://github.com/tier4/pre-commit-hooks-ros
41-
rev: v0.10.0
37+
rev: v0.8.0
4238
hooks:
4339
- id: flake8-ros
4440
- id: prettier-xacro
@@ -53,7 +49,7 @@ repos:
5349
- id: shellcheck
5450

5551
- repo: https://github.com/scop/pre-commit-shfmt
56-
rev: v3.9.0-1
52+
rev: v3.8.0-1
5753
hooks:
5854
- id: shfmt
5955
args: [-w, -s, -i=4]
@@ -64,13 +60,13 @@ repos:
6460
- id: isort
6561

6662
- repo: https://github.com/psf/black
67-
rev: 24.8.0
63+
rev: 24.4.2
6864
hooks:
6965
- id: black
7066
args: [--line-length=100]
7167

7268
- repo: https://github.com/pre-commit/mirrors-clang-format
73-
rev: v18.1.8
69+
rev: v18.1.6
7470
hooks:
7571
- id: clang-format
7672
types_or: [c++, c, cuda]
@@ -83,7 +79,7 @@ repos:
8379
exclude: .cu
8480

8581
- repo: https://github.com/python-jsonschema/check-jsonschema
86-
rev: 0.29.2
82+
rev: 0.28.5
8783
hooks:
8884
- id: check-metaschema
8985
files: ^.+/schema/.*schema\.json$
@@ -97,9 +93,3 @@ repos:
9793
language: node
9894
files: .svg$
9995
additional_dependencies: [prettier@2.7.1, "@prettier/plugin-xml@2.2.0"]
100-
101-
- repo: https://github.com/AleksaC/hadolint-py
102-
rev: v2.12.1b3
103-
hooks:
104-
- id: hadolint
105-
exclude: .svg$

0 commit comments

Comments
 (0)