Skip to content

Commit

Permalink
Use same branch reusable workflow (#106)
Browse files Browse the repository at this point in the history
* Use same branch reusable workflow

Signed-off-by: Raul Sanchez-Mateos <[email protected]>

* Change custom version intput in project dependencies action

Signed-off-by: Raul Sanchez-Mateos <[email protected]>

* Test inputsç

Signed-off-by: Raul Sanchez-Mateos <[email protected]>

* Remove debug jobs

Signed-off-by: Raul Sanchez-Mateos <[email protected]>

---------

Signed-off-by: Raul Sanchez-Mateos <[email protected]>
  • Loading branch information
rsanchez15 authored May 10, 2024
1 parent 80a3c07 commit 972c20a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 24 deletions.
5 changes: 0 additions & 5 deletions .github/actions/project_dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ inputs:
Use the custom version build from eProsima-CI.
If set to false, the workflow will run the tests for Fast DDS v2 and v3.
required: true
type: choice
default: 'custom'
options:
- custom
- v2
- v3

cmake_build_type:
description: Specify cmake_build_type option to download specific artifact
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:

reusable_tests_v2:
name: reusable_tests_v2
uses: eProsima/dev-utils/.github/workflows/reusable-workflow.yml
uses: ./.github/workflows/reusable-workflow.yml
with:
custom_version_build: 'v2'
dependencies_artifact_postfix: '_nightly'

# Uncomment this block to run the tests for Fast DDS v3 when dev-utils is updated
# reusable_tests_v3:
# name: reusable_tests_v3
# uses: eProsima/dev-utils/.github/workflows/reusable-workflow.yml
# uses: ./.github/workflows/reusable-workflow.yml
# with:
# custom_version_build: 'v3'
# dependencies_artifact_postfix: '_nightly'
34 changes: 18 additions & 16 deletions .github/workflows/reusable-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,18 @@ on:

custom_version_build:
description: >
Use the custom version build from eProsima-CI.
If set to false, the workflow will run the tests for Fast DDS v2 and v3.
Version of Fast DDS build from eProsima-CI.
required: true
type: string
default: 'v2'

dependencies_artifact_postfix:
description: 'Postfix name to add to artifact name to download dependencies. This is use to download a specific artifact version from eProsima-CI.'
description: >
Postfix name to add to artifact name to download dependencies.
This is use to download a specific artifact version from eProsima-CI.
required: true
default: '_nightly'
type: string
default: '_nightly'

env:
code_packages_names: 'cmake_utils cpp_utils py_utils'
Expand Down Expand Up @@ -91,8 +93,8 @@ jobs:
with:
os: ${{ matrix.os }}
cmake_build_type: ${{ matrix.cmake_build_type }}
custom_version_build: ${{ github.event.inputs.custom_version_build }}
dependencies_artifact_postfix: ${{ github.event.inputs.dependencies_artifact_postfix }}
custom_version_build: ${{ inputs.custom_version_build }}
dependencies_artifact_postfix: ${{ inputs.dependencies_artifact_postfix }}
secret_token: ${{ secrets.GITHUB_TOKEN }}

- name: Compile and run tests
Expand Down Expand Up @@ -122,8 +124,8 @@ jobs:
with:
os: ubuntu-22.04
cmake_build_type: Release
custom_version_build: ${{ github.event.inputs.custom_version_build }}
dependencies_artifact_postfix: ${{ github.event.inputs.dependencies_artifact_postfix }}
custom_version_build: ${{ inputs.custom_version_build }}
dependencies_artifact_postfix: ${{ inputs.dependencies_artifact_postfix }}
secret_token: ${{ secrets.GITHUB_TOKEN }}

- name: Compile and run tests
Expand Down Expand Up @@ -153,8 +155,8 @@ jobs:
with:
os: ubuntu-22.04
cmake_build_type: Release
custom_version_build: ${{ github.event.inputs.custom_version_build }}
dependencies_artifact_postfix: ${{ github.event.inputs.dependencies_artifact_postfix }}
custom_version_build: ${{ inputs.custom_version_build }}
dependencies_artifact_postfix: ${{ inputs.dependencies_artifact_postfix }}
secret_token: ${{ secrets.GITHUB_TOKEN }}

- name: Compile and run tests
Expand All @@ -181,8 +183,8 @@ jobs:
with:
os: ubuntu-22.04
cmake_build_type: Release
custom_version_build: ${{ github.event.inputs.custom_version_build }}
dependencies_artifact_postfix: ${{ github.event.inputs.dependencies_artifact_postfix }}
custom_version_build: ${{ inputs.custom_version_build }}
dependencies_artifact_postfix: ${{ inputs.dependencies_artifact_postfix }}
secret_token: ${{ secrets.GITHUB_TOKEN }}

- name: Compile and run tests
Expand Down Expand Up @@ -211,8 +213,8 @@ jobs:
with:
os: ubuntu-22.04
cmake_build_type: Release
custom_version_build: ${{ github.event.inputs.custom_version_build }}
dependencies_artifact_postfix: ${{ github.event.inputs.dependencies_artifact_postfix }}
custom_version_build: ${{ inputs.custom_version_build }}
dependencies_artifact_postfix: ${{ inputs.dependencies_artifact_postfix }}
secret_token: ${{ secrets.GITHUB_TOKEN }}

- name: Compile and run tests
Expand Down Expand Up @@ -241,8 +243,8 @@ jobs:
with:
os: ubuntu-22.04
cmake_build_type: Release
custom_version_build: ${{ github.event.inputs.custom_version_build }}
dependencies_artifact_postfix: ${{ github.event.inputs.dependencies_artifact_postfix }}
custom_version_build: ${{ inputs.custom_version_build }}
dependencies_artifact_postfix: ${{ inputs.dependencies_artifact_postfix }}
secret_token: ${{ secrets.GITHUB_TOKEN }}

- name: Compile and run tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

reusable_tests:
name: reusable_tests
uses: eProsima/dev-utils/.github/workflows/reusable-workflow.yml
uses: ./.github/workflows/reusable-workflow.yml
with:
custom_version_build: ${{ github.event.inputs.custom_version_build || 'v2' }}
dependencies_artifact_postfix: ${{ github.event.inputs.dependencies_artifact_postfix || '_nightly' }}

0 comments on commit 972c20a

Please sign in to comment.