forked from autowarefoundation/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into mau/refactor/localization/twist2accel
- Loading branch information
Showing
2,146 changed files
with
67,227 additions
and
66,899 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: clang-tidy-differential | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- labeled | ||
|
||
jobs: | ||
prevent-no-label-execution: | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@v1 | ||
with: | ||
label: tag:run-clang-tidy-differential | ||
|
||
clang-tidy-differential: | ||
needs: prevent-no-label-execution | ||
if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }} | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/autowarefoundation/autoware:latest-prebuilt-cuda | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- 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@v35 | ||
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: cppcheck-daily | ||
|
||
on: | ||
schedule: | ||
- cron: 0 0 * * * | ||
workflow_dispatch: | ||
|
||
jobs: | ||
cppcheck-daily: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential cmake git libpcre3-dev | ||
# cppcheck from apt does not yet support --check-level args, and thus install from source | ||
- name: Install Cppcheck from source | ||
run: | | ||
mkdir /tmp/cppcheck | ||
git clone https://github.com/danmar/cppcheck.git /tmp/cppcheck | ||
cd /tmp/cppcheck | ||
git checkout 2.14.1 | ||
mkdir build | ||
cd build | ||
cmake .. | ||
make -j $(nproc) | ||
sudo make install | ||
- name: Run Cppcheck on all files | ||
continue-on-error: true | ||
id: cppcheck | ||
run: | | ||
cppcheck --enable=all --inconclusive --check-level=exhaustive --error-exitcode=1 --xml . 2> cppcheck-report.xml | ||
shell: bash | ||
|
||
- name: Count errors by error ID and severity | ||
run: | | ||
#!/bin/bash | ||
temp_file=$(mktemp) | ||
grep -oP '(?<=id=")[^"]+" severity="[^"]+' cppcheck-report.xml | sed 's/" severity="/,/g' > "$temp_file" | ||
echo "Error counts by error ID and severity:" | ||
sort "$temp_file" | uniq -c | ||
rm "$temp_file" | ||
shell: bash | ||
|
||
- name: Upload Cppcheck report | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: cppcheck-report | ||
path: cppcheck-report.xml | ||
|
||
- name: Fail the job if Cppcheck failed | ||
if: steps.cppcheck.outcome == 'failure' | ||
run: exit 1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.