ROS2 install test #328
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |