-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
56 lines (45 loc) · 1.54 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: generate_dependency_artifact
description: Build a project and upload its installed objects as an artifact
inputs:
vcs_repos_file:
description: .repos file to import repositories
required: true
artifact_name:
description: Name of the artifact to upload the binary result
required: true
colcon_meta_file:
description: Colcon meta to give cmake options to packages
required: false
default: ''
workspace:
description: Workspace to generate artifact
required: false
default: ${{ github.workspace }}/artifact
workspace_dependencies:
description: Workspace to source where dependencies are
required: false
default: ''
cmake_build_type:
description: CMake build type configuration flag
required: false
default: Release
runs:
using: composite
steps:
- name: Fetch repositories
uses: eProsima/eProsima-CI/multiplatform/vcs_import@main
with:
vcs_repos_file: ${{ inputs.vcs_repos_file }}
destination_workspace: ${{ inputs.workspace }}/src
- name: Build workspace
uses: eProsima/eProsima-CI/multiplatform/colcon_build@main
with:
colcon_meta_file: ${{ inputs.colcon_meta_file }}
workspace: ${{ inputs.workspace }}
workspace_dependencies: ${{ inputs.workspace_dependencies }}
cmake_build_type: ${{ inputs.cmake_build_type }}
- name: Upload binaries
uses: eProsima/eProsima-CI/external/upload-artifact@main
with:
name: ${{ inputs.artifact_name }}
path: ${{ inputs.workspace }}/install