Skip to content

Commit

Permalink
Merge pull request #2 from yoshito-n-students/add-ci-build-check
Browse files Browse the repository at this point in the history
Github Actionsによるビルドチェックの追加
  • Loading branch information
KazuyaOguma18 authored Oct 11, 2024
2 parents a18cd48 + 27b4f7c commit 3fdfbfe
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/ci.yml
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

0 comments on commit 3fdfbfe

Please sign in to comment.