Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: sync files #9531

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/check-build-depends.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# This file is automatically synced from:
# https://github.com/autowarefoundation/sync-file-templates
# To make changes, update the source repository and follow the guidelines in its README.

name: check-build-depends

on:
Expand All @@ -11,7 +7,7 @@ on:

jobs:
check-build-depends:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container: ${{ matrix.container }}
strategy:
fail-fast: false
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/clang-tidy-differential.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: clang-tidy-differential

on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled

jobs:
make-sure-label-is-present:
uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1
with:
label: tag:run-clang-tidy-differential

clang-tidy-differential:
needs: make-sure-label-is-present
if: ${{ needs.make-sure-label-is-present.outputs.result == 'true' }}
runs-on: ubuntu-latest
container: ghcr.io/autowarefoundation/autoware:universe-devel-cuda
steps:
- name: Set PR fetch depth
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"

- name: Checkout PR branch and all PR commits
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: ${{ env.PR_FETCH_DEPTH }}

- name: Show disk space before the tasks
run: df -h

- name: Remove exec_depend
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1

- name: Get modified packages
id: get-modified-packages
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1

- name: Get modified files
id: get-modified-files
uses: tj-actions/changed-files@v42
with:
files: |
**/*.cpp
**/*.hpp

- name: Run clang-tidy
if: ${{ steps.get-modified-files.outputs.all_changed_files != '' }}
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1
with:
rosdistro: humble
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
target-files: ${{ steps.get-modified-files.outputs.all_changed_files }}
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
build-depends-repos: build_depends.repos

- name: Show disk space after the tasks
run: df -h
10 changes: 3 additions & 7 deletions .github/workflows/clang-tidy-pr-comments-manually.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# This file is automatically synced from:
# https://github.com/autowarefoundation/sync-file-templates
# To make changes, update the source repository and follow the guidelines in its README.

name: clang-tidy-pr-comments-manually

on:
Expand All @@ -12,10 +8,10 @@ on:
required: true
jobs:
clang-tidy-pr-comments-manually:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download analysis results
run: |
Expand All @@ -40,7 +36,7 @@ jobs:

- name: Check out PR head
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ${{ steps.set-variables.outputs.pr-head-repo }}
ref: ${{ steps.set-variables.outputs.pr-head-ref }}
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/clang-tidy-pr-comments.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# This file is automatically synced from:
# https://github.com/autowarefoundation/sync-file-templates
# To make changes, update the source repository and follow the guidelines in its README.

name: clang-tidy-pr-comments

on:
Expand All @@ -14,10 +10,10 @@ on:
jobs:
clang-tidy-pr-comments:
if: ${{ github.event.workflow_run.event == 'pull_request' && contains(fromJson('["success", "failure"]'), github.event.workflow_run.conclusion) }}
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download analysis results
run: |
Expand All @@ -41,7 +37,7 @@ jobs:

- name: Check out PR head
if: ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ${{ steps.set-variables.outputs.pr-head-repo }}
ref: ${{ steps.set-variables.outputs.pr-head-ref }}
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/delete-closed-pr-docs.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# This file is automatically synced from:
# https://github.com/autowarefoundation/sync-file-templates
# To make changes, update the source repository and follow the guidelines in its README.

name: delete-closed-pr-docs

on:
Expand All @@ -11,7 +7,7 @@ on:

jobs:
delete-closed-pr-docs:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# This file is automatically synced from:
# https://github.com/autowarefoundation/sync-file-templates
# To make changes, update the source repository and follow the guidelines in its README.

name: deploy-docs

on:
Expand Down Expand Up @@ -31,7 +27,7 @@ jobs:
deploy-docs:
needs: prevent-no-label-execution
if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }}
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# This file is automatically synced from:
# https://github.com/autowarefoundation/sync-file-templates
# To make changes, update the source repository and follow the guidelines in its README.

name: pre-commit

on:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spell-check-daily.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
with:
local-cspell-json: .cspell.json
incremental-files-only: false
cspell-json-url: https://raw.githubusercontent.com/tier4/autoware-spell-check-dict/main/.cspell.json
cspell-json-url: https://raw.githubusercontent.com/autowarefoundation/autoware-spell-check-dict/main/.cspell.json
dict-packages: |
https://github.com/autowarefoundation/autoware-spell-check-dict
https://github.com/tier4/cspell-dicts
6 changes: 1 addition & 5 deletions .github/workflows/update-codeowners-from-packages.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# This file is automatically synced from:
# https://github.com/autowarefoundation/sync-file-templates
# To make changes, update the source repository and follow the guidelines in its README.

name: update-codeowners-from-packages

on:
Expand All @@ -18,7 +14,7 @@ jobs:
update-codeowners-from-packages:
needs: check-secret
if: ${{ needs.check-secret.outputs.set == 'true' }}
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate-token
Expand Down
20 changes: 5 additions & 15 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# This file is automatically synced from:
# https://github.com/autowarefoundation/sync-file-templates
# To make changes, update the source repository and follow the guidelines in its README.

ci:
autofix_commit_msg: "style(pre-commit): autofix"

Expand Down Expand Up @@ -38,7 +34,7 @@ repos:
- id: yamllint

- repo: https://github.com/tier4/pre-commit-hooks-ros
rev: v0.10.0
rev: v0.8.0
hooks:
- id: flake8-ros
- id: prettier-xacro
Expand All @@ -53,7 +49,7 @@ repos:
- id: shellcheck

- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.9.0-1
rev: v3.8.0-1
hooks:
- id: shfmt
args: [-w, -s, -i=4]
Expand All @@ -64,13 +60,13 @@ repos:
- id: isort

- repo: https://github.com/psf/black
rev: 24.8.0
rev: 24.4.2
hooks:
- id: black
args: [--line-length=100]

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.8
rev: v18.1.6
hooks:
- id: clang-format
types_or: [c++, c, cuda]
Expand All @@ -83,7 +79,7 @@ repos:
exclude: .cu

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.2
rev: 0.28.5
hooks:
- id: check-metaschema
files: ^.+/schema/.*schema\.json$
Expand All @@ -97,9 +93,3 @@ repos:
language: node
files: .svg$
additional_dependencies: [[email protected], "@prettier/[email protected]"]

- repo: https://github.com/AleksaC/hadolint-py
rev: v2.12.1b3
hooks:
- id: hadolint
exclude: .svg$
Loading
Loading