update Dockerfile, install.sh and github workflow (#4) #47
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: catkin_build | |
on: [push] | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
catkin_build: | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 5 | |
container: | |
image: ros:noetic | |
steps: | |
- name: Handle issue with actions/checkout when Git version is less than 2.18 | |
run: apt-get update && apt-get install -y git | |
- uses: actions/checkout@v4 | |
with: | |
path: catkin_ws/src/dronecan_communicator | |
submodules: recursive | |
- name: Install requirements | |
run: ./catkin_ws/src/dronecan_communicator/scripts/install.sh | |
- name: catkin build | |
run: source /opt/ros/$ROS_DISTRO/setup.bash && cd catkin_ws && catkin build |