Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Commit

Permalink
Enable github action CI
Browse files Browse the repository at this point in the history
  • Loading branch information
congliu0913 committed Jun 2, 2020
1 parent bee6275 commit 69541d0
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/refactor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This is a basic workflow to help you get started with Actions

name: refactor-CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the refactor branch
on:
push:
branches: [ refactor ]
pull_request:
branches: [ refactor ]


# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build-test:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# install ros2 dashing
- name: Setup ROS environment
uses: ros-tooling/[email protected]
with:
required-ros-distributions: dashing

# install librealsense 2.34.0-0~realsense0.2251
- name: install librealsense
run: |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE
sudo sh -c 'echo "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo `lsb_release -cs` main" > /etc/apt/sources.list.d/librealsense.list'
sudo apt-get update && sudo apt-get install -y librealsense2=2.34.0-0~realsense0.2251 librealsense2-dev=2.34.0-0~realsense0.2251 librealsense2-udev-rules=2.34.0-0~realsense0.2251
# build
- name: build
run: |
mkdir -p ~/ros2_ws/src
cp -rf /home/runner/work/ros2_intel_realsense/ros2_intel_realsense ~/ros2_ws/src
cd ~/ros2_ws
source /opt/ros/dashing/setup.sh
colcon build --symlink-install

0 comments on commit 69541d0

Please sign in to comment.