From 9ac3e80b8f2996a93ab821a399da18c0f4dfe84f Mon Sep 17 00:00:00 2001 From: ISP akm Date: Fri, 21 Jun 2024 16:12:13 +0900 Subject: [PATCH] change .cppcheck-suppressions download timing Signed-off-by: ISP akm --- .github/workflows/cppcheck-all-files.yaml | 12 ++++++------ .github/workflows/cppcheck-differential.yaml | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) 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: |