Refactoring and CI update #163
Workflow file for this run
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: humble | |
on: | |
push: | |
branches: | |
- humble | |
- develop | |
pull_request: | |
branches: | |
- humble | |
- develop | |
jobs: | |
job1: | |
name: Build | |
runs-on: ubuntu-22.04 | |
container: ros:humble-ros-core | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Copy repository | |
run: | | |
mkdir -p ~/ros2_ws/src/lidarslam_ros2 | |
cp -rf . ~/ros2_ws/src/lidarslam_ros2 | |
shell: bash | |
- name: Install dependencies | |
run: | | |
apt-get update | |
apt-get install -y git python3-rosdep | |
rosdep init | |
rosdep update | |
cd ~/ros2_ws/src | |
rosdep install -r -y --from-paths . --ignore-src | |
shell: bash | |
- name: Build packages | |
run: | | |
source /opt/ros/humble/setup.bash | |
apt-get update | |
apt-get install -y python3-colcon-common-extensions | |
cd ~/ros2_ws | |
colcon build | |
source ~/ros2_ws/install/setup.bash | |
shell: bash |