-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from rsasaki0109/feature/ci_humble
humble CI
- Loading branch information
Showing
3 changed files
with
18 additions
and
99 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,34 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- devel | ||
jobs: | ||
job1: | ||
name: Build | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-22.04 | ||
container: ros:humble | ||
steps: | ||
- name: ROS2 Install | ||
run: | | ||
# Ref: https://index.ros.org/doc/ros2/Installation/Dashing/Linux-Install-Debians/ | ||
sudo locale-gen en_US en_US.UTF-8 | ||
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 | ||
export LANG=en_US.UTF-8 | ||
sudo apt update && sudo apt install curl gnupg2 lsb-release | ||
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add - | ||
sudo sh -c 'echo "deb [arch=amd64,arm64] http://packages.ros.org/ros2/ubuntu `lsb_release -cs` main" > /etc/apt/sources.list.d/ros2-latest.list' | ||
sudo apt update | ||
sudo apt install ros-dashing-desktop | ||
source /opt/ros/dashing/setup.bash | ||
- uses: actions/checkout@v2-beta | ||
- uses: actions/checkout@v1 | ||
with: | ||
submodules: true | ||
- name: Copy repository | ||
run: | | ||
mkdir -p ~/ros2_ws/src/kalman_filter_localization | ||
cp -rf . ~/ros2_ws/src/kalman_filter_localization | ||
- name: Install dependencies | ||
run: | | ||
source /opt/ros/dashing/setup.bash | ||
sudo apt install -y python-rosdep | ||
sudo rosdep init | ||
rosdep update | ||
source /opt/ros/humble/setup.bash | ||
cd ~/ros2_ws/src | ||
rosdep update | ||
rosdep install -r -y --from-paths . --ignore-src | ||
shell: bash | ||
- name: Build packages | ||
run: | | ||
source /opt/ros/dashing/setup.bash | ||
# Install colcon | ||
# Ref: https://index.ros.org/doc/ros2/Tutorials/Colcon-Tutorial/ | ||
sudo apt install python3-colcon-common-extensions | ||
source /opt/ros/humble/setup.bash | ||
apt install python3-colcon-common-extensions | ||
cd ~/ros2_ws | ||
colcon build | ||
source ~/ros2_ws/install/setup.bash | ||
- name: Test packages | ||
run: | | ||
source /opt/ros/dashing/setup.bash | ||
source ~/ros2_ws/install/setup.bash | ||
cd ~/ros2_ws | ||
colcon test | ||
colcon test-result --verbose | ||
shell: bash |
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
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