-
Notifications
You must be signed in to change notification settings - Fork 11
112 lines (88 loc) · 3.58 KB
/
test.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: test
on:
workflow_dispatch:
inputs:
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.'
required: true
default: '_nightly'
pull_request:
push:
branches:
- main
schedule:
- cron: '0 0 * * *'
env:
default_dependencies_artifact_postfix: '_nightly'
jobs:
#####################################################################
# TEST
multiplatform-build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
cmake_build_type:
- Release
- Debug
os:
- ubuntu-20.04
- ubuntu-22.04
- windows-2019
- windows-2021
steps:
- name: Sync repository
uses: eProsima/eProsima-CI/external/checkout@v0
with:
path: ${{ github.workspace }}/src/fastdds_monitor
- name: Download dependencies and install requirements
uses: ./src/fastdds_monitor/.github/actions/project_dependencies
with:
os: ${{ matrix.os }}
cmake_build_type: ${{ matrix.cmake_build_type }}
dependencies_artifact_postfix: ${{ github.event.inputs.dependencies_artifact_postfix || env.default_dependencies_artifact_postfix }}
secret_token: ${{ secrets.GITHUB_TOKEN }}
- name: Fetch Fast DDS Monitor repositories
uses: eProsima/eProsima-CI/multiplatform/vcs_import@v0
with:
vcs_repos_file: ${{ github.workspace }}/src/fastdds_monitor/fastdds_monitor.repos
destination_workspace: ${{ github.workspace }}/src
- name: Compile
#uses: eProsima/eProsima-CI/multiplatform/colcon_build_test@v0
uses: eProsima/eProsima-CI/multiplatform/colcon_build@v0
with:
#packages_names: fastdds_monitor
colcon_build_args: '--packages-up-to fastdds_monitor'
cmake_args: -DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }}
#workspace_dependencies: ${{ github.workspace }}/install
colcon_meta_file: ${{ github.workspace }}/src/fastdds_monitor/.github/workflows/configurations/${{ runner.os }}/colcon.meta
#####################################################################
# CLANG
# clang:
# runs-on: ubuntu-22.04
# steps:
# - name: Sync repository
# uses: eProsima/eProsima-CI/external/checkout@v0
# with:
# path: ${{ github.workspace }}/src
# - name: Download dependencies and install requirements
# #uses: ./src/fastdds_monitor/.github/actions/project_dependencies
# uses: ${{ github.workspace }}/src/fastdds_monitor/.github/actions/project_dependencies
# with:
# os: ubuntu-22.04
# cmake_build_type: Release
# dependencies_artifact_postfix: ${{ github.event.inputs.dependencies_artifact_postfix || env.default_dependencies_artifact_postfix }}
# secret_token: ${{ secrets.GITHUB_TOKEN }}
# - name: Compile and run tests
# uses: eProsima/eProsima-CI/multiplatform/clang_build_test@v0
# with:
# #packages_names: ${{ env.code_packages_names }}
# workspace_dependencies: ${{ github.workspace }}/install
# colcon_meta_file: ${{ github.workspace }}/src/fastdds_monitor/.github/workflows/configurations/Linux/clang_colcon.meta
#####################################################################
# UNCRUSTIFY
# uncrustify:
# runs-on: ubuntu-22.04
# steps:
# - name: Uncrustify
# uses: eProsima/eProsima-CI/ubuntu/uncrustify@v0