-
Notifications
You must be signed in to change notification settings - Fork 41
45 lines (43 loc) · 1.12 KB
/
main.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
name: ROS2 install test
on:
push:
branches:
- main
paths:
- "run.sh"
- "tutorial.sh"
- ".github/workflows/main.yml"
pull_request:
branches:
- main
paths:
- "run.sh"
- "tutorial.sh"
- ".github/workflows/main.yml"
schedule:
- cron: "0 1 * * 1"
jobs:
humble:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Run the install script
run: |
sed -e 's/^\(CHOOSE_ROS_DISTRO=.*\)/#\1\nCHOOSE_ROS_DISTRO=humble/g' -i run.sh
./run.sh
- name: Run the test script
run: |
sed -e 's/^\(ROS_DISTRO=.*\)/#\1\nROS_DISTRO=humble/g' -i tutorial.sh
bash <(head -n -2 ./tutorial.sh)
iron:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Run the install script
run: |
sed -e 's/^\(CHOOSE_ROS_DISTRO=.*\)/#\1\nCHOOSE_ROS_DISTRO=iron/g' -i run.sh
./run.sh
- name: Run the test script
run: |
sed -e 's/^\(ROS_DISTRO=.*\)/#\1\nROS_DISTRO=iron/g' -i tutorial.sh
bash <(head -n -2 ./tutorial.sh)