Skip to content

Commit

Permalink
# This is a combination of 19 commits.
Browse files Browse the repository at this point in the history
# This is the 1st commit message:

updated added build and dropped travis

# This is the commit message #2:

updated added build and dropped travis

# This is the commit message #3:

updated added build and dropped travis

# This is the commit message #4:

updated added build and dropped travis

# This is the commit message #5:

updated added build and dropped travis

# This is the commit message #6:

updated added build and dropped travis

# This is the commit message #7:

updated

# This is the commit message #8:

updated

# This is the commit message #9:

updated

# This is the commit message #10:

updated

# This is the commit message #11:

updated

# This is the commit message #12:

updated

# This is the commit message #13:

updated

# This is the commit message #14:

updated

# This is the commit message #15:

updated

# This is the commit message #16:

updated

# This is the commit message #17:

updated

# This is the commit message #18:

updated

# This is the commit message #19:

added ci
  • Loading branch information
iKrishneel committed Apr 8, 2021
1 parent 97606d3 commit 23f8efc
Showing 1 changed file with 34 additions and 42 deletions.
76 changes: 34 additions & 42 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,58 +23,50 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Update Environment Vars
- name: Using Docker
run: |
echo "ROS_WORKSPACE=$GITHUB_WORKSPACE/$ROS_VERSION/$ROS_DISTRO" >> $GITHUB_ENV
export DOCKER_IMAGE=krishneel/ros2-foxy:latest
export CI_SOURCE_PATH=$(pwd)
export REPO_NAME=${{ github.event.repository.name }}
export HOME=$GITHUB_WORKSPACE
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install vcstool black flake8
docker run -v $HOME:$HOME -e CI_SOURCE_PATH -e $REPO_NAME -e HOME $DOCKER_IMAGE bash -c 'cd $CI_SOURCE_PATH; source .github/travis.sh'
# - name: Set up Python
# uses: actions/setup-python@v2
# with:
# python-version: '3.8'

- name: Setup workspace
run: |
mkdir -p $ROS_WORKSPACE/src
ln -s $GITHUB_WORKSPACE $ROS_WORKSPACE/src
- name: Cloning ROS Deps
run: |
echo "Repository Name ${{ github.event.repository.name }}"
cd ${ROS_WORKSPACE}/src/${{ github.event.repository.name }}
vcs import . < deps.repos
cd ${ROS_WORKSPACE}
- name: Setup ROS
uses: ros-tooling/setup-ros@v0.1
with:
required-ros-distributions: ${{ env.ROS_DISTRO }}
# - name: Update Environment Vars
# run: |
# echo "ROS_WORKSPACE=$GITHUB_WORKSPACE/$ROS_VERSION/$ROS_DISTRO" >> $GITHUB_ENV

# - name: Building
# uses: ros-tooling/action-ros-ci@v0.1
# with:
# target-ros2-distro: ${{ env.ROS_DISTRO }}
# package-name: backhoe_ros_pkg

# - name: Installing ROS
# - name: Install build dependencies
# run: |
# sudo apt-get install -y ros-${{ env.ROS_DISTRO }}-desktop python3-colcon-* \
# octomap-tools libflann-dev libpcl-dev libboost-all-dev libeigen-stl-containers-dev \
# libqhull-dev libccd-dev ros-${{ env.ROS_DISTRO }}-ament-cmake-ros

# python -m pip install --upgrade pip
# pip install vcstool black flake8

# - name: Setup workspace
# run: |
# vcs import . < deps.repos

# - name: Setup ROS
# uses: ros-tooling/setup-ros@v0.1
# with:
# required-ros-distributions: ${{ env.ROS_DISTRO }}

# - name: Build workspace
# run: |
# sudo apt update && sudo apt-get install locales -y
# sudo apt update
# sudo apt-get install -y locales libflann-dev liboctomap-dev libpcl-dev

# 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

# cd ${{ env.ROS_WORKSPACE }}/
# echo "WORKSPACE: ${{ env.ROS_WORKSPACE }}"

# cd ../../..

# ls /opt/ros/${{ env.ROS_DISTRO }}/

# source /opt/ros/${{ env.ROS_DISTRO }}/setup.bash
# echo `pwd`
Expand Down

0 comments on commit 23f8efc

Please sign in to comment.