-
Notifications
You must be signed in to change notification settings - Fork 5
101 lines (85 loc) · 3 KB
/
build_dependencies.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
# This job builds the dependencies of this repository every day
# This saves time in every action execution as it does not require to compile the dependencies
name: build_dependencies
on:
workflow_dispatch:
inputs:
fastdds_branch:
description: 'Branch or tag of Fast DDS repository (https://github.com/eProsima/Fast-DDS)'
required: true
default: 'master'
utils_branch:
description: 'Branch or tag of Dev Utils repository (https://github.com/eProsima/dev-utils)'
required: true
default: 'main'
schedule:
- cron: '0 0 * * *'
jobs:
windows-build:
runs-on: ${{ matrix.windows-version }}
strategy:
fail-fast: false
matrix:
cmake-config:
- 'Release'
- 'Debug'
windows-version:
- 'windows-2019'
- 'windows-2022'
env:
CXXFLAGS: /MP
OPENSSL64_ROOT: "C:/Program Files/OpenSSL-Win64"
steps:
- name: Sync eProsima/DDS-Pipe repository
uses: actions/checkout@v3
with:
path: DDS-Pipe
- name: Install OpenSSL
uses: ./DDS-Pipe/.github/actions/install-openssl-windows
- name: Install eProsima dependencies
uses: ./DDS-Pipe/.github/actions/install-eprosima-dependencies-windows
env:
DEFAULT_FASTDDS_BRANCH: 'master'
DEFAULT_UTILS_BRANCH: 'main'
with:
cmake_build_type: ${{ matrix.cmake-config }}
fastdds_branch: ${{ github.event.inputs.fastdds_branch || env.DEFAULT_FASTDDS_BRANCH }}
utils_branch: ${{ github.event.inputs.utils_branch || env.DEFAULT_UTILS_BRANCH }}
- name: Upload binaries
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.windows-version }}_${{ matrix.cmake-config }}_fastdds_install
path: ${{ github.workspace }}\eprosima\install
ubuntu-build:
runs-on: ${{ matrix.ubuntu-version }}
strategy:
fail-fast: false
matrix:
ubuntu-version:
- 'ubuntu-20.04'
- 'ubuntu-22.04'
steps:
- name: Sync eProsima/DDS-Pipe repository
uses: actions/checkout@v3
with:
path: src/DDS-Pipe
- name: Avoid DDS Pipe build
run: |
touch ./src/DDS-Pipe/COLCON_IGNORE
- name: Install apt packages
uses: ./src/DDS-Pipe/.github/actions/install-apt-packages
- name: Install Python packages
uses: ./src/DDS-Pipe/.github/actions/install-python-packages
- name: Fetch repositories
run: |
vcs import src < src/DDS-Pipe/.github/workflows/ci.repos
cd src/fastrtps && git checkout ${{ inputs.fastdds_branch }} && cd ../..
cd src/dev-utils && git checkout ${{ inputs.utils_branch }} && cd ../..
- name: Build workspace
run: |
colcon build --event-handlers=console_direct+
- name: Upload binaries
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.ubuntu-version }}_fastdds_install
path: install