Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3f0d0d9

Browse files
authoredJun 24, 2024··
Merge branch 'main' into fix/segmentation_pointcloud_fusion/fix_mask_size
2 parents d2d776e + 2ca276f commit 3f0d0d9

File tree

85 files changed

+2674
-1499
lines changed

Some content is hidden

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

85 files changed

+2674
-1499
lines changed
 

‎.github/workflows/cppcheck-daily.yaml

+3-16
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,10 @@ jobs:
1313
- name: Checkout code
1414
uses: actions/checkout@v2
1515

16-
- name: Install dependencies
16+
# cppcheck from apt does not yet support --check-level args, and thus install from snap
17+
- name: Install Cppcheck from snap
1718
run: |
18-
sudo apt-get update
19-
sudo apt-get install -y build-essential cmake git libpcre3-dev
20-
21-
# cppcheck from apt does not yet support --check-level args, and thus install from source
22-
- name: Install Cppcheck from source
23-
run: |
24-
mkdir /tmp/cppcheck
25-
git clone https://github.com/danmar/cppcheck.git /tmp/cppcheck
26-
cd /tmp/cppcheck
27-
git checkout 2.14.1
28-
mkdir build
29-
cd build
30-
cmake ..
31-
make -j $(nproc)
32-
sudo make install
19+
sudo snap install cppcheck
3320
3421
- name: Run Cppcheck on all files
3522
continue-on-error: true

‎.github/workflows/cppcheck-differential.yaml

+18-16
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,35 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- name: Checkout code
12-
uses: actions/checkout@v2
11+
- name: Set PR fetch depth
12+
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
13+
14+
- name: Checkout PR branch and all PR commits
15+
uses: actions/checkout@v4
16+
with:
17+
ref: ${{ github.event.pull_request.head.sha }}
18+
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
1319

1420
- name: Install dependencies
1521
run: |
1622
sudo apt-get update
17-
sudo apt-get install -y build-essential cmake git libpcre3-dev
23+
sudo apt-get install -y git
1824
19-
# cppcheck from apt does not yet support --check-level args, and thus install from source
20-
- name: Install Cppcheck from source
25+
# cppcheck from apt does not yet support --check-level args, and thus install from snap
26+
- name: Install Cppcheck from snap
2127
run: |
22-
mkdir /tmp/cppcheck
23-
git clone https://github.com/danmar/cppcheck.git /tmp/cppcheck
24-
cd /tmp/cppcheck
25-
git checkout 2.14.1
26-
mkdir build
27-
cd build
28-
cmake ..
29-
make -j $(nproc)
30-
sudo make install
28+
sudo snap install cppcheck
29+
30+
- name: Fetch the base branch with enough history for a common merge-base commit
31+
run: git fetch origin ${{ github.base_ref }}
32+
shell: bash
3133

3234
- name: Get changed files
3335
id: changed-files
3436
run: |
35-
git fetch origin ${{ github.base_ref }} --depth=1
36-
git diff --name-only FETCH_HEAD ${{ github.sha }} > changed_files.txt
37+
git diff --name-only "origin/${{ github.base_ref }}"...HEAD > changed_files.txt
3738
cat changed_files.txt
39+
shell: bash
3840

3941
- name: Run Cppcheck on changed files
4042
continue-on-error: true

0 commit comments

Comments
 (0)
Please sign in to comment.