-
Notifications
You must be signed in to change notification settings - Fork 80
270 lines (270 loc) · 8.68 KB
/
Copy pathnightly.yml
File metadata and controls
270 lines (270 loc) · 8.68 KB
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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
name: Nightly
on:
schedule:
# 2am SGT
- cron: '0 18 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-minimal-rmf-docker-images:
name: Push minimal-rmf Docker image to GitHub Packages
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ros_distribution: [jazzy, rolling]
steps:
- uses: actions/checkout@v5
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to docker
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push minimal-rmf
uses: docker/build-push-action@v5
with:
push: true
build-args: |
ROS_DISTRO=${{ matrix.ros_distribution }}
tags: ghcr.io/${{ github.repository }}/minimal-rmf:${{ matrix.ros_distribution }}-nightly
context: .github/minimal-rmf
build-dashboard-image:
needs: build-minimal-rmf-docker-images
name: Push Dashboard docker image to GitHub Packages
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ros_distribution: [jazzy, rolling]
steps:
- uses: actions/checkout@v5
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to docker
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push demo-dashboard
uses: docker/build-push-action@v5
with:
push: true
build-args: |
BASE_IMAGE=ghcr.io/${{ github.repository }}/minimal-rmf:${{ matrix.ros_distribution }}-nightly
ROS_DISTRO=${{ matrix.ros_distribution }}
tags: ghcr.io/${{ github.repository }}/demo-dashboard:${{ matrix.ros_distribution }}-nightly
context: .github/demo-dashboard
build-api-server-image:
needs: build-minimal-rmf-docker-images
name: Push API server docker image to GitHub Packages
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ros_distribution: [jazzy, rolling]
steps:
- uses: actions/checkout@v5
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to docker
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push api-server
uses: docker/build-push-action@v5
with:
push: true
build-args: |
ROS_DISTRO=${{ matrix.ros_distribution }}
BASE_IMAGE=ghcr.io/${{ github.repository }}/minimal-rmf:${{ matrix.ros_distribution }}-nightly
tags: |
ghcr.io/${{ github.repository }}/api-server:${{ matrix.ros_distribution }}-nightly
${{ matrix.ros_distribution == 'rolling' && format('ghcr.io/{0}/api-server:latest', github.repository) || null}}
context: .github/api-server
api-client:
needs: build-minimal-rmf-docker-images
name: Test API client
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ros_distribution: [jazzy, rolling]
container:
image: ghcr.io/${{ github.repository }}/minimal-rmf:${{ matrix.ros_distribution }}-nightly
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
defaults:
run:
shell: bash
working-directory: packages/api-client
steps:
- name: Checkout main for rolling
if: matrix.ros_distribution == 'rolling'
uses: actions/checkout@v5
- name: Checkout ros_distribution branch
if: matrix.ros_distribution != 'rolling'
uses: actions/checkout@v5
with:
ref: ${{ matrix.ros_distribution }}
- name: bootstrap
uses: ./.github/actions/bootstrap
with:
package: api-client
- name: lint
run: pnpm run lint
- name: test
run: pnpm test
api-server:
needs: build-minimal-rmf-docker-images
name: Test API server
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Sandboxing rolling due to https://github.com/open-rmf/rmf-web/issues/1086
# ros_distribution: [jazzy, rolling]
ros_distribution: [jazzy]
container:
image: ghcr.io/${{ github.repository }}/minimal-rmf:${{ matrix.ros_distribution }}-nightly
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
defaults:
run:
shell: bash
working-directory: packages/api-server
steps:
- name: Checkout main for rolling
if: matrix.ros_distribution == 'rolling'
uses: actions/checkout@v5
- name: Checkout ros_distribution branch
if: matrix.ros_distribution != 'rolling'
uses: actions/checkout@v5
with:
ref: ${{ matrix.ros_distribution }}
- name: bootstrap
uses: ./.github/actions/bootstrap
with:
package: api-server
skip-build: true
- name: tests
run: |
. /opt/ros/${{ matrix.ros_distribution }}/setup.bash
pnpm run lint
pnpm run test
rmf-dashboard-framework:
needs: build-minimal-rmf-docker-images
name: Test dashboard framework
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ros_distribution: [jazzy, rolling]
container:
image: ghcr.io/${{ github.repository }}/minimal-rmf:${{ matrix.ros_distribution }}-nightly
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
defaults:
run:
shell: bash
working-directory: packages/rmf-dashboard-framework
steps:
- name: Checkout main for rolling
if: matrix.ros_distribution == 'rolling'
uses: actions/checkout@v5
- name: Checkout ros_distribution branch
if: matrix.ros_distribution != 'rolling'
uses: actions/checkout@v5
with:
ref: ${{ matrix.ros_distribution }}
- name: bootstrap
uses: ./.github/actions/bootstrap
with:
package: rmf-dashboard-framework
skip-build: true
- name: lint
run: pnpm lint
- name: unit test
run: pnpm run test
ros-translator:
needs: build-minimal-rmf-docker-images
name: Test ros-translator
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ros_distribution: [jazzy, rolling]
container:
image: ghcr.io/${{ github.repository }}/minimal-rmf:${{ matrix.ros_distribution }}-nightly
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
defaults:
run:
shell: bash
working-directory: packages/ros-translator
steps:
- name: Checkout main for rolling
if: matrix.ros_distribution == 'rolling'
uses: actions/checkout@v5
- name: Checkout ros_distribution branch
if: matrix.ros_distribution != 'rolling'
uses: actions/checkout@v5
with:
ref: ${{ matrix.ros_distribution }}
- name: dependencies
run: apt update && apt install ros-dev-tools -y
- name: bootstrap
uses: ./.github/actions/bootstrap
with:
package: ros-translator
skip-build: true
- name: test
run: . /opt/ros/${{ matrix.ros_distribution }}/setup.bash && pnpm test
# dashboard-e2e:
# strategy:
# matrix:
# npm: ['latest']
# fail-fast: false
# needs: build-docker-images
# name: Dashboard e2e
# runs-on: ubuntu-latest
# container:
# image: ghcr.io/${{ github.repository }}/e2e
# options: --privileged --ipc=host
# defaults:
# run:
# shell: bash
# working-directory: packages/dashboard-e2e
# steps:
# - uses: actions/checkout@v5
# - name: bootstrap
# uses: ./.github/actions/bootstrap
# with:
# package: rmf-dashboard-e2e
# skip-build: true
# - name: test
# uses: nick-fields/retry@v2
# with:
# timeout_minutes: 20
# max_attempts: 3
# command: |
# . /rmf_demos_ws/install/setup.bash
# cd packages/dashboard-e2e
# pnpm test
# shell: bash
# - name: upload artifacts
# uses: actions/upload-artifact@v2
# if: always()
# with:
# name: artifacts
# path: packages/dashboard-e2e/artifacts