diff --git a/.github/workflows/cppcheck-all-files.yaml b/.github/workflows/cppcheck-all-files.yaml index 36eaeede..c748c8e9 100644 --- a/.github/workflows/cppcheck-all-files.yaml +++ b/.github/workflows/cppcheck-all-files.yaml @@ -5,7 +5,7 @@ on: workflow_dispatch: jobs: - cppcheck-full: + cppcheck-all-files: runs-on: ubuntu-latest steps: @@ -17,6 +17,11 @@ jobs: sudo apt-get update sudo apt-get install -y build-essential cmake git libpcre3-dev wget + # Download the cppcheck suppression file + - name: Download cppcheck suppression file + run: | + wget https://raw.githubusercontent.com/autowarefoundation/autoware.universe/main/.cppcheck_suppressions -O .cppcheck_suppressions + # cppcheck from apt does not yet support --check-level args, and thus install from source - name: Install Cppcheck from source run: | @@ -30,11 +35,6 @@ jobs: make -j $(nproc) sudo make install - # Download the cppcheck suppression file - - name: Download cppcheck suppression file - run: | - wget https://raw.githubusercontent.com/autowarefoundation/autoware.universe/main/.cppcheck_suppressions -O .cppcheck_suppressions - - name: Get all C++ files id: all-files run: | diff --git a/.github/workflows/cppcheck-differential.yaml b/.github/workflows/cppcheck-differential.yaml index 9615e8ca..83dcecbc 100644 --- a/.github/workflows/cppcheck-differential.yaml +++ b/.github/workflows/cppcheck-differential.yaml @@ -16,6 +16,11 @@ jobs: sudo apt-get update sudo apt-get install -y build-essential cmake git libpcre3-dev wget + # Download the cppcheck suppression file + - name: Download cppcheck suppression file + run: | + wget https://raw.githubusercontent.com/autowarefoundation/autoware.universe/main/.cppcheck_suppressions -O .cppcheck_suppressions + # cppcheck from apt does not yet support --check-level args, and thus install from source - name: Install Cppcheck from source run: | @@ -29,11 +34,6 @@ jobs: make -j $(nproc) sudo make install - # Download the cppcheck suppression file - - name: Download cppcheck suppression file - run: | - wget https://raw.githubusercontent.com/autowarefoundation/autoware.universe/main/.cppcheck_suppressions -O .cppcheck_suppressions - - name: Get changed files id: changed-files run: |