diff --git a/.github/workflows/mac-ci.yml b/.github/workflows/mac-ci.yml index e48938981b..e7049936aa 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: @@ -48,4 +53,9 @@ jobs: colcon-args: ${{ inputs.colcon-args }} cmake-args: '-DSECURITY=ON ${{ inputs.cmake-args }}' ctest-args: ${{ inputs.ctest-args }} +<<<<<<< HEAD fastdds-branch: ${{ inputs.fastdds_branch || github.ref || '2.6.x' }} +======= + fastdds-branch: ${{ inputs.fastdds_branch || github.ref || 'master' }} + use-ccache: ${{ ((inputs.use-ccache == true) && true) || false }} +>>>>>>> 7f6f42357 (CI - Avoid CCache in workflows and nightlies (#4971)) diff --git a/.github/workflows/nightly-mac-ci.yml b/.github/workflows/nightly-mac-ci.yml new file mode 100644 index 0000000000..f137f1c8f1 --- /dev/null +++ b/.github/workflows/nightly-mac-ci.yml @@ -0,0 +1,82 @@ +name: Fast DDS MacOS CI (nightly) + +on: + workflow_dispatch: + schedule: + - cron: '0 1 * * *' + +jobs: + nightly-mac-ci-master: + strategy: + fail-fast: false + matrix: + security: + - 'ON' + - 'OFF' + uses: eProsima/Fast-DDS/.github/workflows/reusable-mac-ci.yml@master + with: + label: 'nightly-sec-${{ matrix.security }}-mac-ci-master' + cmake-args: "-DSECURITY=${{ matrix.security }}" + ctest-args: "-LE xfail" + fastdds-branch: 'master' + use-ccache: false + + nightly-mac-ci-2_14_x: + strategy: + fail-fast: false + matrix: + security: + - 'ON' + - 'OFF' + uses: eProsima/Fast-DDS/.github/workflows/reusable-mac-ci.yml@2.14.x + with: + label: 'nightly-sec-${{ matrix.security }}-mac-ci-2.14.x' + cmake-args: "-DSECURITY=${{ matrix.security }}" + ctest-args: "-LE xfail" + fastdds-branch: '2.14.x' + use-ccache: false + + nightly-mac-ci-2_13_x: + strategy: + fail-fast: false + matrix: + security: + - 'ON' + - 'OFF' + uses: eProsima/Fast-DDS/.github/workflows/reusable-mac-ci.yml@2.13.x + with: + label: 'nightly-sec-${{ matrix.security }}-mac-ci-2.13.x' + cmake-args: "-DSECURITY=${{ matrix.security }}" + ctest-args: "-LE xfail" + fastdds-branch: '2.13.x' + use-ccache: false + + nightly-mac-ci-2_10_x: + strategy: + fail-fast: false + matrix: + security: + - 'ON' + - 'OFF' + uses: eProsima/Fast-DDS/.github/workflows/reusable-mac-ci.yml@2.10.x + with: + label: 'nightly-sec-${{ matrix.security }}-mac-ci-2.10.x' + cmake-args: "-DSECURITY=${{ matrix.security }}" + ctest-args: "-LE xfail" + fastdds-branch: '2.10.x' + use-ccache: false + + nightly-mac-ci-2_6_x: + strategy: + fail-fast: false + matrix: + security: + - 'ON' + - 'OFF' + uses: eProsima/Fast-DDS/.github/workflows/reusable-mac-ci.yml@2.6.x + with: + label: 'nightly-sec-${{ matrix.security }}-mac-ci-2.6.x' + 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 new file mode 100644 index 0000000000..774a44b683 --- /dev/null +++ b/.github/workflows/nightly-ubuntu-ci.yml @@ -0,0 +1,102 @@ +name: Fast DDS Ubuntu CI (nightly) + +on: + workflow_dispatch: + schedule: + - cron: '0 1 * * *' + +jobs: + nightly-ubuntu-ci-master: + strategy: + fail-fast: false + matrix: + os-image: + - 'ubuntu-22.04' + security: + - true + - false + uses: eProsima/Fast-DDS/.github/workflows/reusable-ubuntu-ci.yml@master + with: + os-image: ${{ matrix.os-image }} + label: '${{ matrix.os-image }}-nightly-sec-${{ matrix.security }}-ubuntu-ci-master' + ctest-args: "-LE xfail" + fastdds-branch: 'master' + security: ${{ matrix.security }} + run-tests: true + use-ccache: false + + nightly-ubuntu-ci-2_14_x: + strategy: + fail-fast: false + matrix: + os-image: + - 'ubuntu-22.04' + security: + - true + - false + uses: eProsima/Fast-DDS/.github/workflows/reusable-ubuntu-ci.yml@2.14.x + with: + os-image: ${{ matrix.os-image }} + label: '${{ matrix.os-image }}-nightly-sec-${{ matrix.security }}-ubuntu-ci-2.14.x' + ctest-args: "-LE xfail" + fastdds-branch: '2.14.x' + security: ${{ matrix.security }} + run-tests: true + use-ccache: false + + nightly-ubuntu-ci-2_13_x: + strategy: + fail-fast: false + matrix: + os-image: + - 'ubuntu-22.04' + security: + - true + - false + uses: eProsima/Fast-DDS/.github/workflows/reusable-ubuntu-ci.yml@2.13.x + with: + os-image: ${{ matrix.os-image }} + label: '${{ matrix.os-image }}-nightly-sec-${{ matrix.security }}-ubuntu-ci-2.13.x' + ctest-args: "-LE xfail" + fastdds-branch: '2.13.x' + security: ${{ matrix.security }} + run-tests: true + use-ccache: false + + nightly-ubuntu-ci-2_10_x: + strategy: + fail-fast: false + matrix: + os-image: + - 'ubuntu-22.04' + security: + - true + - false + uses: eProsima/Fast-DDS/.github/workflows/reusable-ubuntu-ci.yml@2.10.x + with: + os-image: ${{ matrix.os-image }} + label: '${{ matrix.os-image }}-nightly-sec-${{ matrix.security }}-ubuntu-ci-2.10.x' + ctest-args: "-LE xfail" + fastdds-branch: '2.10.x' + security: ${{ matrix.security }} + run-tests: true + use-ccache: false + + nightly-ubuntu-ci-2_6_x: + strategy: + fail-fast: false + matrix: + os-image: + - 'ubuntu-22.04' + security: + - true + - false + uses: eProsima/Fast-DDS/.github/workflows/reusable-ubuntu-ci.yml@2.6.x + with: + os-image: ${{ matrix.os-image }} + label: '${{ matrix.os-image }}-nightly-sec-${{ matrix.security }}-ubuntu-ci-2.6.x' + ctest-args: "-LE xfail" + fastdds-branch: '2.6.x' + security: ${{ matrix.security }} + run-tests: true + use-ccache: false diff --git a/.github/workflows/reusable-mac-ci.yml b/.github/workflows/reusable-mac-ci.yml index eb6c0da7e2..c367a2e615 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,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: | diff --git a/.github/workflows/reusable-sanitizers-ci.yml b/.github/workflows/reusable-sanitizers-ci.yml index e0e47627f5..4d7a9c0dbc 100644 --- a/.github/workflows/reusable-sanitizers-ci.yml +++ b/.github/workflows/reusable-sanitizers-ci.yml @@ -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 @@ -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 @@ -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 @@ -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