From 7f6f423578481ccebdbd33994708cfa45f67c60b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Poderoso?= <120394830+JesusPoderoso@users.noreply.github.com> Date: Thu, 20 Jun 2024 12:19:36 +0200 Subject: [PATCH] CI - Avoid CCache in workflows and nightlies (#4971) * 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 --- .github/workflows/mac-ci.yml | 6 ++++++ .github/workflows/nightly-mac-ci.yml | 5 +++++ .github/workflows/nightly-ubuntu-ci.yml | 10 +++++----- .github/workflows/reusable-mac-ci.yml | 6 ++++++ .github/workflows/reusable-sanitizers-ci.yml | 4 ++++ 5 files changed, 26 insertions(+), 5 deletions(-) diff --git a/.github/workflows/mac-ci.yml b/.github/workflows/mac-ci.yml index 03945a414ac..21cf3f2652f 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 || 'master' }} + use-ccache: ${{ ((inputs.use-ccache == true) && true) || false }} diff --git a/.github/workflows/nightly-mac-ci.yml b/.github/workflows/nightly-mac-ci.yml index f8e5959dae7..f137f1c8f1a 100644 --- a/.github/workflows/nightly-mac-ci.yml +++ b/.github/workflows/nightly-mac-ci.yml @@ -19,6 +19,7 @@ jobs: cmake-args: "-DSECURITY=${{ matrix.security }}" ctest-args: "-LE xfail" fastdds-branch: 'master' + use-ccache: false nightly-mac-ci-2_14_x: strategy: @@ -33,6 +34,7 @@ jobs: cmake-args: "-DSECURITY=${{ matrix.security }}" ctest-args: "-LE xfail" fastdds-branch: '2.14.x' + use-ccache: false nightly-mac-ci-2_13_x: strategy: @@ -47,6 +49,7 @@ jobs: cmake-args: "-DSECURITY=${{ matrix.security }}" ctest-args: "-LE xfail" fastdds-branch: '2.13.x' + use-ccache: false nightly-mac-ci-2_10_x: strategy: @@ -61,6 +64,7 @@ jobs: cmake-args: "-DSECURITY=${{ matrix.security }}" ctest-args: "-LE xfail" fastdds-branch: '2.10.x' + use-ccache: false nightly-mac-ci-2_6_x: strategy: @@ -75,3 +79,4 @@ jobs: cmake-args: "-DSECURITY=${{ matrix.security }}" ctest-args: "-LE xfail" fastdds-branch: '2.6.x' + use-ccache: false diff --git a/.github/workflows/nightly-ubuntu-ci.yml b/.github/workflows/nightly-ubuntu-ci.yml index 5ef36ccac7c..774a44b683e 100644 --- a/.github/workflows/nightly-ubuntu-ci.yml +++ b/.github/workflows/nightly-ubuntu-ci.yml @@ -23,7 +23,7 @@ jobs: fastdds-branch: 'master' security: ${{ matrix.security }} run-tests: true - use-ccache: true + use-ccache: false nightly-ubuntu-ci-2_14_x: strategy: @@ -42,7 +42,7 @@ jobs: fastdds-branch: '2.14.x' security: ${{ matrix.security }} run-tests: true - use-ccache: true + use-ccache: false nightly-ubuntu-ci-2_13_x: strategy: @@ -61,7 +61,7 @@ jobs: fastdds-branch: '2.13.x' security: ${{ matrix.security }} run-tests: true - use-ccache: true + use-ccache: false nightly-ubuntu-ci-2_10_x: strategy: @@ -80,7 +80,7 @@ jobs: fastdds-branch: '2.10.x' security: ${{ matrix.security }} run-tests: true - use-ccache: true + use-ccache: false nightly-ubuntu-ci-2_6_x: strategy: @@ -99,4 +99,4 @@ jobs: fastdds-branch: '2.6.x' security: ${{ matrix.security }} run-tests: true - use-ccache: true + use-ccache: false diff --git a/.github/workflows/reusable-mac-ci.yml b/.github/workflows/reusable-mac-ci.yml index 9f0e145d821..1dfebbd36fb 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 a488c4a30f6..450338ec097 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 }}