From 4e89ae39c9ad50b8fcab06570486055123c7298c Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:06:46 +0200 Subject: [PATCH] CI - Avoid CCache in workflows and nightlies (#4971) (#4974) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Refs #21158: Remove CCache in Ubuntu nightly workflows Signed-off-by: JesusPoderoso * Refs #21158: Avoid CCache in remain workflows Signed-off-by: JesusPoderoso --------- Signed-off-by: JesusPoderoso (cherry picked from commit 7f6f423578481ccebdbd33994708cfa45f67c60b) Co-authored-by: Jesús Poderoso <120394830+JesusPoderoso@users.noreply.github.com> --- .github/workflows/mac-ci.yml | 6 ++++++ .github/workflows/reusable-mac-ci.yml | 6 ++++++ .github/workflows/reusable-sanitizers-ci.yml | 4 ++++ 3 files changed, 16 insertions(+) diff --git a/.github/workflows/mac-ci.yml b/.github/workflows/mac-ci.yml index 8acc455d101..f89bfc7298c 100644 --- a/.github/workflows/mac-ci.yml +++ b/.github/workflows/mac-ci.yml @@ -23,6 +23,11 @@ on: description: 'Branch or tag of Fast DDS repository (https://github.com/eProsima/Fast-DDS)' type: string required: true + use-ccache: + description: 'Use CCache to speed up the build' + required: false + type: boolean + default: false pull_request: types: @@ -49,3 +54,4 @@ jobs: cmake-args: '-DSECURITY=ON ${{ inputs.cmake-args }}' ctest-args: ${{ inputs.ctest-args }} fastdds-branch: ${{ inputs.fastdds_branch || github.ref || '2.13.x' }} + use-ccache: ${{ ((inputs.use-ccache == true) && true) || false }} diff --git a/.github/workflows/reusable-mac-ci.yml b/.github/workflows/reusable-mac-ci.yml index e7db7c53b35..9c70300d6df 100644 --- a/.github/workflows/reusable-mac-ci.yml +++ b/.github/workflows/reusable-mac-ci.yml @@ -23,6 +23,11 @@ on: description: 'Branch or tag of Fast DDS repository (https://github.com/eProsima/Fast-DDS)' required: true type: string + use-ccache: + description: 'Use CCache to speed up the build' + required: false + type: boolean + default: false defaults: run: @@ -84,6 +89,7 @@ jobs: - name: Setup CCache uses: eProsima/eProsima-CI/external/setup-ccache-action@v0 + if: ${{ inputs.use-ccache == true }} with: api_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/reusable-sanitizers-ci.yml b/.github/workflows/reusable-sanitizers-ci.yml index eb77a269b3c..3255754421e 100644 --- a/.github/workflows/reusable-sanitizers-ci.yml +++ b/.github/workflows/reusable-sanitizers-ci.yml @@ -89,6 +89,7 @@ jobs: - name: Setup CCache uses: eProsima/eProsima-CI/external/setup-ccache-action@v0 + if: ${{ !always() }} with: api_token: ${{ secrets.GITHUB_TOKEN }} @@ -171,6 +172,7 @@ jobs: - name: Setup CCache uses: eProsima/eProsima-CI/external/setup-ccache-action@v0 + if: ${{ !always() }} with: api_token: ${{ secrets.GITHUB_TOKEN }} @@ -251,6 +253,7 @@ jobs: - name: Setup CCache uses: eProsima/eProsima-CI/external/setup-ccache-action@v0 + if: ${{ !always() }} with: api_token: ${{ secrets.GITHUB_TOKEN }} @@ -358,6 +361,7 @@ jobs: - name: Setup CCache uses: eProsima/eProsima-CI/external/setup-ccache-action@v0 + if: ${{ !always() }} with: api_token: ${{ secrets.GITHUB_TOKEN }}