Skip to content

Commit dcb135c

Browse files
authored
Refactor dev-utils CI (#141)
Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com>
1 parent 6c89418 commit dcb135c

File tree

7 files changed

+453
-245
lines changed

7 files changed

+453
-245
lines changed

.github/actions/project_dependencies/action.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: dependencies_ubuntu
1+
name: dev_utils_dependencies_ubuntu
22
description: Common first step for all jobs. Checkout repository, download dependencies and install required packages.
33

44
inputs:
@@ -7,17 +7,17 @@ inputs:
77
description: Specify runs-on machine to download specific artifact
88
required: true
99

10+
cmake_build_type:
11+
description: Specify cmake_build_type option to download specific artifact
12+
required: true
13+
1014
custom_version_build:
1115
description: >
1216
Use the custom version build from eProsima-CI.
1317
If set to false, the workflow will run the tests for Fast DDS v2 and v3.
1418
required: true
1519
default: 'custom'
1620

17-
cmake_build_type:
18-
description: Specify cmake_build_type option to download specific artifact
19-
required: true
20-
2121
dependencies_artifact_postfix:
2222
description: Specify artifact postfix in case it wants to use a manual one
2323
required: false
@@ -26,7 +26,7 @@ inputs:
2626
target_workspace:
2727
description: Specify directory to download dependencies
2828
required: false
29-
default: './install'
29+
default: ${{ github.workspace }}/install
3030

3131
# This must be passed as an argument because actions do not access to workflow secrets:
3232
# Unrecognized named-value: 'secrets'. https://github.com/orgs/community/discussions/27054
@@ -45,6 +45,10 @@ runs:
4545
with:
4646
cmake_build_type: ${{ inputs.cmake_build_type }}
4747

48+
- name: Install yaml cpp dependency
49+
uses: eProsima/eProsima-CI/multiplatform/install_yamlcpp@v0
50+
with:
51+
cmake_build_type: ${{ inputs.cmake_build_type }}
4852

4953
# Fast DDS artifact
5054
- name: Download dependencies artifact
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
1-
# Nightly test workflow for dev-utils
2-
name: nightly-dev-utils
1+
# Nightly test workflow for Dev Utils
2+
name: nightly-ubuntu-ci
33

44
on:
55
workflow_dispatch:
6-
76
schedule:
87
- cron: '0 5 * * *'
98

109
jobs:
1110

1211
reusable_tests_v2:
1312
name: reusable_tests_v2
14-
uses: ./.github/workflows/reusable-workflow.yml
13+
uses: ./.github/workflows/reusable-ubuntu-ci.yml
1514
with:
1615
custom_version_build: 'v2'
1716
dependencies_artifact_postfix: '_nightly'
18-
ref: '0.x'
17+
ref: '2.x'
1918
secrets: inherit
2019

2120
reusable_tests_v3:
2221
name: reusable_tests_v3
23-
uses: ./.github/workflows/reusable-workflow.yml
22+
uses: ./.github/workflows/reusable-ubuntu-ci.yml
2423
with:
2524
custom_version_build: 'v3'
2625
dependencies_artifact_postfix: '_nightly'
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Nightly test workflow for Dev Utils
2+
name: nightly-windows-ci
3+
4+
on:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: '0 5 * * *'
8+
9+
jobs:
10+
11+
reusable_tests_v2:
12+
name: reusable_tests_v2
13+
uses: ./.github/workflows/reusable-windows-ci.yml
14+
with:
15+
custom_version_build: 'v2'
16+
dependencies_artifact_postfix: '_nightly'
17+
ref: '2.x'
18+
secrets: inherit
19+
20+
reusable_tests_v3:
21+
name: reusable_tests_v3
22+
uses: ./.github/workflows/reusable-windows-ci.yml
23+
with:
24+
custom_version_build: 'v3'
25+
dependencies_artifact_postfix: '_nightly'
26+
ref: 'main'
27+
secrets: inherit
28+

0 commit comments

Comments
 (0)