This repository has been archived by the owner on Jan 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bee6275
commit 69541d0
Showing
1 changed file
with
46 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,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 |