-
Notifications
You must be signed in to change notification settings - Fork 0
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 #2 from yoshito-n-students/add-ci-build-check
Github Actionsによるビルドチェックの追加
- Loading branch information
Showing
1 changed file
with
64 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
ci: | ||
strategy: | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ros:noetic-ros-base | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
# System update | ||
- name: Run apt-upgrade | ||
run: | | ||
sudo apt update | ||
sudo apt --yes upgrade | ||
sudo apt install -y git | ||
# Checkout core | ||
- name: Checkout layered_hardware | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: yoshito-n-students/layered_hardware | ||
path: src/layered_hardware | ||
# Checkout extensions | ||
- name: Checkout layered_hardware_extensions | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: yoshito-n-students/layered_hardware_extensions | ||
path: src/layered_hardware_extensions | ||
# Checkout unitree | ||
- name: Checkout layered_hardware_unitree | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: yoshito-n-students/layered_hardware_unitree | ||
path: src/layered_hardware_unitree | ||
submodules: true | ||
# Checkout misc | ||
- name: Checkout ros_controll_extensions | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: yoshito-n-students/ros_control_extensions | ||
path: src/ros_control_extensions | ||
# Install dependencies | ||
- name: Run rosdep-install | ||
run: | | ||
source /opt/ros/noetic/setup.bash | ||
sudo apt update | ||
rosdep update --rosdistro noetic | ||
sudo rosdep install --default-yes -r --ignore-src --from-paths src --rosdistro noetic | ||
# catkin_make | ||
- name: Build | ||
run: | | ||
source /opt/ros/noetic/setup.bash | ||
catkin_make | ||
# run_tests | ||
- name: Run tests | ||
run: | | ||
source /opt/ros/noetic/setup.bash | ||
catkin_make run_tests |