forked from RobustFieldAutonomyLab/LeGO-LOAM
-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (35 loc) · 975 Bytes
/
melodic_build_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
name: Melodic build
on:
workflow_dispatch:
schedule:
- cron: 0 0 * * *
pull_request:
push:
jobs:
job1:
name: BuildTest
runs-on: ubuntu-20.04
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
rosdistro: [melodic]
env:
ROS_DISTRO: ${{ matrix.rosdistro }}
container: hrjp/ros:${{ matrix.rosdistro }}
steps:
- name: get repository name
run: echo "REPOSITORY_NAME=${GITHUB_REPOSITORY#${GITHUB_REPOSITORY_OWNER}/}" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Copy repository
run: cp -rp /__w/${{ env.REPOSITORY_NAME }}/${{ env.REPOSITORY_NAME }} /home/catkin_ws/src
- name: Resolve rosdep
run: |
cd /home/catkin_ws
apt update
rosdep update
rosdep install -iry --from-paths src --rosdistro ${{ matrix.rosdistro }}
- name: Build packages
run: |
cd /home/catkin_ws
catkin build