Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[21158] CI - Avoid CCache in workflows and nightlys #4971

Merged
merged 2 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 || 'master' }}
use-ccache: ${{ ((inputs.use-ccache == true) && true) || false }}
5 changes: 5 additions & 0 deletions .github/workflows/nightly-mac-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -75,3 +79,4 @@ jobs:
cmake-args: "-DSECURITY=${{ matrix.security }}"
ctest-args: "-LE xfail"
fastdds-branch: '2.6.x'
use-ccache: false
10 changes: 5 additions & 5 deletions .github/workflows/nightly-ubuntu-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -99,4 +99,4 @@ jobs:
fastdds-branch: '2.6.x'
security: ${{ matrix.security }}
run-tests: true
use-ccache: true
use-ccache: false
6 changes: 6 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,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 }}

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/reusable-sanitizers-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down Expand Up @@ -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 }}

Expand Down Expand Up @@ -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 }}

Expand Down Expand Up @@ -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 }}

Expand Down
Loading