From 23f8efc5a2283cafc607fe4921634c561e17103c Mon Sep 17 00:00:00 2001 From: iKrishneel Date: Wed, 17 Mar 2021 21:10:39 +0900 Subject: [PATCH] # This is a combination of 19 commits. # 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 --- .github/workflows/ci.yml | 76 ++++++++++++++++++---------------------- 1 file changed, 34 insertions(+), 42 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 337f4f7..8c23750 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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`