Skip to content

Commit

Permalink
CI - Avoid CCache in workflows and nightlies (#4971)
Browse files Browse the repository at this point in the history
* Refs #21158: Remove CCache in Ubuntu nightly workflows

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

* Refs #21158: Avoid CCache in remain workflows

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>

---------

Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>
(cherry picked from commit 7f6f423)
  • Loading branch information
JesusPoderoso committed Jun 20, 2024
1 parent eb16c4e commit f6e6db1
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/mac-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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.6.x' }}
use-ccache: ${{ ((inputs.use-ccache == true) && true) || false }}
11 changes: 11 additions & 0 deletions .github/workflows/reusable-mac-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -84,6 +89,12 @@ jobs:

- name: Setup CCache
uses: eProsima/eProsima-CI/external/setup-ccache-action@v0
<<<<<<< HEAD
=======
if: ${{ inputs.use-ccache == true }}
with:
api_token: ${{ secrets.GITHUB_TOKEN }}
>>>>>>> 7f6f42357 (CI - Avoid CCache in workflows and nightlies (#4971))

- name: Set up hosts file for DNS testing
run: |
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/reusable-sanitizers-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ jobs:

- name: Setup CCache
uses: eProsima/eProsima-CI/external/setup-ccache-action@v0
<<<<<<< HEAD
=======
if: ${{ !always() }}
with:
api_token: ${{ secrets.GITHUB_TOKEN }}
>>>>>>> 7f6f42357 (CI - Avoid CCache in workflows and nightlies (#4971))

- name: Fetch Fast DDS dependencies
uses: eProsima/eProsima-CI/multiplatform/vcs_import@v0
Expand Down Expand Up @@ -169,6 +175,12 @@ jobs:
- name: Setup CCache
uses: eProsima/eProsima-CI/external/setup-ccache-action@v0
<<<<<<< HEAD
=======
if: ${{ !always() }}
with:
api_token: ${{ secrets.GITHUB_TOKEN }}
>>>>>>> 7f6f42357 (CI - Avoid CCache in workflows and nightlies (#4971))

- name: Show .meta file
id: show_meta
Expand Down Expand Up @@ -247,6 +259,12 @@ jobs:

- name: Setup CCache
uses: eProsima/eProsima-CI/external/setup-ccache-action@v0
<<<<<<< HEAD
=======
if: ${{ !always() }}
with:
api_token: ${{ secrets.GITHUB_TOKEN }}
>>>>>>> 7f6f42357 (CI - Avoid CCache in workflows and nightlies (#4971))

- name: Get Discovery Server branch
id: get_discovery_server_branch
Expand Down Expand Up @@ -352,6 +370,12 @@ jobs:

- name: Setup CCache
uses: eProsima/eProsima-CI/external/setup-ccache-action@v0
<<<<<<< HEAD
=======
if: ${{ !always() }}
with:
api_token: ${{ secrets.GITHUB_TOKEN }}
>>>>>>> 7f6f42357 (CI - Avoid CCache in workflows and nightlies (#4971))

- name: Fetch Fast DDS dependencies
uses: eProsima/eProsima-CI/multiplatform/vcs_import@v0
Expand Down

0 comments on commit f6e6db1

Please sign in to comment.