From a7c37b010f100e56eafc2e7015cc81e8fc5be369 Mon Sep 17 00:00:00 2001 From: ISP akm Date: Fri, 21 Jun 2024 16:11:35 +0900 Subject: [PATCH] change .cppcheck-suppressions download timing Signed-off-by: ISP akm --- .github/workflows/cppcheck-all-files.yaml | 10 +++++----- .github/workflows/cppcheck-differential.yaml | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/cppcheck-all-files.yaml b/.github/workflows/cppcheck-all-files.yaml index 36eaeed..e3452bc 100644 --- a/.github/workflows/cppcheck-all-files.yaml +++ b/.github/workflows/cppcheck-all-files.yaml @@ -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 9615e8c..83dcecb 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: |