-
Notifications
You must be signed in to change notification settings - Fork 0
220 lines (203 loc) · 7.7 KB
/
main.yaml
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
name: humble-build
on:
push:
branches: [ humble ]
pull_request:
branches: [ humble ]
workflow_dispatch:
inputs:
push_to_docker:
description: 'Push packages to docker image?'
required: true
default: true
type: boolean
env:
ROS_DISTRO: humble
jobs:
tii-deb-build:
runs-on: ubuntu-latest
steps:
- name: Checkout rmw_fastrtps
uses: actions/checkout@v2
with:
submodules: recursive
# Run docker build
- name: Run docker builder
env:
ROS: 1
IMAGE_NAME: tii_fastdds_builder
run: |
set -eux
mkdir bin
PLATFORM=linux/amd64 ./build.sh ./bin/
# Run docker build
# - name: Run foonathan_memory_vendor docker build
# env:
# ROS: 1
# IMAGE_NAME: tii_fastdds_builder
# PACKAGE_NAME: foonathan_memory_vendor
# ROS_DISTRO: ${{env.ROS_DISTRO}}
# DEPENDENCIES: ""
# run: |
# set -eux
# source build.sh
# build_package $IMAGE_NAME latest $PACKAGE_NAME "$DEPENDENCIES"
# # Run docker build
# - name: Run Fast-CDR docker build
# env:
# ROS: 1
# IMAGE_NAME: tii_fastdds_builder
# PACKAGE_NAME: Fast-CDR
# ROS_DISTRO: ${{env.ROS_DISTRO}}
# DEPENDENCIES: ""
# run: |
# set -eux
# source build.sh
# build_package $IMAGE_NAME latest $PACKAGE_NAME "$DEPENDENCIES"
# - name: Run Fast-DDS docker build
# env:
# ROS: 1
# IMAGE_NAME: tii_fastdds_builder
# PACKAGE_NAME: Fast-DDS
# ROS_DISTRO: ${{env.ROS_DISTRO}}
# DEPENDENCIES: "ros-${{env.ROS_DISTRO}}-foonathan-memory-vendor \
# ros-${{env.ROS_DISTRO}}-fastcdr"
# run: |
# set -eux
# source build.sh
# build_package $IMAGE_NAME latest $PACKAGE_NAME "$DEPENDENCIES"
# - name: Run rosidl_typesupport_fastrtps/fastrtps_cmake_module docker build
# env:
# ROS: 1
# IMAGE_NAME: tii_fastdds_builder
# PACKAGE_NAME: rosidl_typesupport_fastrtps/fastrtps_cmake_module
# ROS_DISTRO: ${{env.ROS_DISTRO}}
# DEPENDENCIES: "ros-${{env.ROS_DISTRO}}-foonathan-memory-vendor \
# ros-${{env.ROS_DISTRO}}-fastcdr \
# ros-${{env.ROS_DISTRO}}-fastrtps"
# run: |
# set -eux
# source build.sh
# build_package $IMAGE_NAME latest $PACKAGE_NAME "$DEPENDENCIES"
# - name: Run rosidl_typesupport_fastrtps/rosidl_typesupport_fastrtps_cpp docker build
# env:
# ROS: 1
# IMAGE_NAME: tii_fastdds_builder
# PACKAGE_NAME: rosidl_typesupport_fastrtps/rosidl_typesupport_fastrtps_cpp
# ROS_DISTRO: ${{env.ROS_DISTRO}}
# DEPENDENCIES: "ros-${{env.ROS_DISTRO}}-foonathan-memory-vendor \
# ros-${{env.ROS_DISTRO}}-fastcdr \
# ros-${{env.ROS_DISTRO}}-fastrtps \
# ros-${{env.ROS_DISTRO}}-fastrtps-cmake-module"
# run: |
# set -eux
# source build.sh
# build_package $IMAGE_NAME latest $PACKAGE_NAME "$DEPENDENCIES"
# - name: Run rosidl_typesupport_fastrtps/rosidl_typesupport_fastrtps_c docker build
# env:
# ROS: 1
# IMAGE_NAME: tii_fastdds_builder
# PACKAGE_NAME: rosidl_typesupport_fastrtps/rosidl_typesupport_fastrtps_c
# ROS_DISTRO: ${{env.ROS_DISTRO}}
# DEPENDENCIES: "ros-${{env.ROS_DISTRO}}-foonathan-memory-vendor \
# ros-${{env.ROS_DISTRO}}-fastcdr \
# ros-${{env.ROS_DISTRO}}-fastrtps \
# ros-${{env.ROS_DISTRO}}-fastrtps-cmake-module \
# ros-${{env.ROS_DISTRO}}-rosidl-typesupport-fastrtps-cpp"
# run: |
# set -eux
# source build.sh
# build_package $IMAGE_NAME latest $PACKAGE_NAME "$DEPENDENCIES"
# - name: Run rmw_fastrtps/rmw_fastrtps_shared_cpp docker build
# env:
# ROS: 1
# IMAGE_NAME: tii_fastdds_builder
# PACKAGE_NAME: rmw_fastrtps/rmw_fastrtps_shared_cpp
# ROS_DISTRO: ${{env.ROS_DISTRO}}
# DEPENDENCIES: "ros-${{env.ROS_DISTRO}}-foonathan-memory-vendor \
# ros-${{env.ROS_DISTRO}}-fastcdr \
# ros-${{env.ROS_DISTRO}}-fastrtps \
# ros-${{env.ROS_DISTRO}}-fastrtps-cmake-module \
# ros-${{env.ROS_DISTRO}}-rosidl-typesupport-fastrtps-cpp \
# ros-${{env.ROS_DISTRO}}-rosidl-typesupport-fastrtps-c"
# run: |
# set -eux
# source build.sh
# build_package $IMAGE_NAME latest $PACKAGE_NAME "$DEPENDENCIES"
# - name: Run rmw_fastrtps/rmw_fastrtps_dynamic_cpp docker build
# env:
# ROS: 1
# IMAGE_NAME: tii_fastdds_builder
# PACKAGE_NAME: rmw_fastrtps/rmw_fastrtps_dynamic_cpp
# ROS_DISTRO: ${{env.ROS_DISTRO}}
# DEPENDENCIES: "ros-${{env.ROS_DISTRO}}-foonathan-memory-vendor \
# ros-${{env.ROS_DISTRO}}-fastcdr \
# ros-${{env.ROS_DISTRO}}-fastrtps \
# ros-${{env.ROS_DISTRO}}-fastrtps-cmake-module \
# ros-${{env.ROS_DISTRO}}-rosidl-typesupport-fastrtps-cpp \
# ros-${{env.ROS_DISTRO}}-rosidl-typesupport-fastrtps-c \
# ros-${{env.ROS_DISTRO}}-rmw-fastrtps-shared-cpp"
# run: |
# set -eux
# source build.sh
# build_package $IMAGE_NAME latest $PACKAGE_NAME "$DEPENDENCIES"
# - name: Run rmw_fastrtps/rmw_fastrtps_cpp docker build
# env:
# ROS: 1
# IMAGE_NAME: tii_fastdds_builder
# PACKAGE_NAME: rmw_fastrtps/rmw_fastrtps_cpp
# ROS_DISTRO: ${{env.ROS_DISTRO}}
# DEPENDENCIES: "ros-${{env.ROS_DISTRO}}-foonathan-memory-vendor \
# ros-${{env.ROS_DISTRO}}-fastcdr \
# ros-${{env.ROS_DISTRO}}-fastrtps \
# ros-${{env.ROS_DISTRO}}-fastrtps-cmake-module \
# ros-${{env.ROS_DISTRO}}-rosidl-typesupport-fastrtps-cpp \
# ros-${{env.ROS_DISTRO}}-rosidl-typesupport-fastrtps-c \
# ros-${{env.ROS_DISTRO}}-rmw-fastrtps-shared-cpp"
# run: |
# set -eux
# source build.sh
# build_package $IMAGE_NAME latest $PACKAGE_NAME "$DEPENDENCIES"
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: fastdds_debs
path: bin/*.deb
retention-days: 14
docker_image:
runs-on: ubuntu-latest
needs: tii-deb-build
if: (github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.push_to_docker))
steps:
- name: Checkout rmw_fastrtps
uses: actions/checkout@v4
- name: Download builds
uses: actions/download-artifact@v2
with:
name: fastdds_debs
path: bin/
- uses: docker/setup-buildx-action@v1
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/tiiuae/tii-fastdds-artifacts
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=sha
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build px4-sitl-gazebo-artifacts image and push
uses: docker/build-push-action@v5
with:
context: .
push: true
file: ./Dockerfile.deb_packages
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}