Skip to content

Commit

Permalink
update .github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
goldbattle committed Dec 13, 2021
1 parent 7c863f7 commit 3cfb398
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/build_ros1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,20 @@ jobs:
name: "ROS1 Ubuntu 16.04"
runs-on: ubuntu-latest
steps:
- name: Build docker image
run: docker build -t local < Dockerfile_ros1_16_04
- name: Run build
run: docker run -it -v $PWD:/catkin_ws/src -w/catkin_ws catkin build
- name: Code checkout
uses: actions/checkout@v2
- name: Create Workspace and Docker Image
run: |
export REPO=$(basename $GITHUB_REPOSITORY) &&
cd $GITHUB_WORKSPACE/.. && mkdir src/ &&
mv $REPO/ src/ && mkdir $REPO/ && mv src/ $REPO/ && cd $REPO/ &&
docker build -t openvins -f $GITHUB_WORKSPACE/src/$REPO/Dockerfile_ros1_16_04 .
- name: Run Build in Docker
run: |
docker run -t --mount type=bind,source=$GITHUB_WORKSPACE,target=/catkin_ws openvins /bin/bash -c "cd /catkin_ws && catkin build"
- name: Run OpenVINS Simulation!
run: |
docker run -t --mount type=bind,source=$GITHUB_WORKSPACE,target=/catkin_ws openvins /bin/bash -c "cd /catkin_ws && source devel/setup.bash && roslaunch ov_msckf simulation.launch"
# runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 3cfb398

Please sign in to comment.