diff --git a/.github/workflows/mac-ci.yml b/.github/workflows/mac-ci.yml index e48938981bc..db1ae41c21b 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.6.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 eb6c0da7e27..feb683f0aff 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,9 @@ jobs: - name: Setup CCache uses: eProsima/eProsima-CI/external/setup-ccache-action@v0 + if: ${{ inputs.use-ccache == true }} + with: + api_token: ${{ secrets.GITHUB_TOKEN }} - name: Set up hosts file for DNS testing run: | diff --git a/.github/workflows/reusable-sanitizers-ci.yml b/.github/workflows/reusable-sanitizers-ci.yml index e0e47627f54..9f461e513a3 100644 --- a/.github/workflows/reusable-sanitizers-ci.yml +++ b/.github/workflows/reusable-sanitizers-ci.yml @@ -89,6 +89,9 @@ jobs: - name: Setup CCache uses: eProsima/eProsima-CI/external/setup-ccache-action@v0 + if: ${{ !always() }} + with: + api_token: ${{ secrets.GITHUB_TOKEN }} - name: Fetch Fast DDS dependencies uses: eProsima/eProsima-CI/multiplatform/vcs_import@v0 @@ -169,6 +172,9 @@ jobs: - name: Setup CCache uses: eProsima/eProsima-CI/external/setup-ccache-action@v0 + if: ${{ !always() }} + with: + api_token: ${{ secrets.GITHUB_TOKEN }} - name: Show .meta file id: show_meta @@ -247,6 +253,9 @@ jobs: - name: Setup CCache uses: eProsima/eProsima-CI/external/setup-ccache-action@v0 + if: ${{ !always() }} + with: + api_token: ${{ secrets.GITHUB_TOKEN }} - name: Get Discovery Server branch id: get_discovery_server_branch @@ -352,6 +361,9 @@ jobs: - name: Setup CCache uses: eProsima/eProsima-CI/external/setup-ccache-action@v0 + if: ${{ !always() }} + with: + api_token: ${{ secrets.GITHUB_TOKEN }} - name: Fetch Fast DDS dependencies uses: eProsima/eProsima-CI/multiplatform/vcs_import@v0