Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
goldbattle committed Aug 13, 2023
1 parent cb4aeb5 commit ce46b17
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/build_ros1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,29 @@ jobs:
steps:
- name: Code Checkout
uses: actions/checkout@v2
- name: Reconfigure git to use HTTP authentication
run: |
git config --global url."https://github.com/".insteadOf [email protected]: &&
git config --global url."https://".insteadOf git://
- name: Create Workspace and Docker Image
run: |
export REPO=$(basename $GITHUB_REPOSITORY) &&
cd $GITHUB_WORKSPACE/.. && mkdir src/ &&
cd src/
&& git clone https://github.com/rpng/open_vins.git
&& git clone https://github.com/ethz-asl/maplab.git --recursive
&& cd .. &&
mv $REPO/ src/ && mkdir $REPO/ && mv src/ $REPO/ && cd $REPO/ &&
docker build -t ov_plane -f $GITHUB_WORKSPACE/src/$REPO/Dockerfile_ros1_20_04 .
cd $GITHUB_WORKSPACE/.. && mkdir src/ && cd src/ &&
git clone https://github.com/rpng/open_vins.git &&
git clone https://github.com/ethz-asl/maplab.git --recursive &&
cd .. && mv $REPO/ src/ && mkdir $REPO/ && mv src/ $REPO/ && cd $REPO/ &&
docker build -t ov_maplab -f $GITHUB_WORKSPACE/src/$REPO/Dockerfile_ros1_20_04 .
- name: Run Build in Docker
run: |
docker run -t --mount type=bind,source=$GITHUB_WORKSPACE,target=/catkin_ws ov_plane /bin/bash -c
docker run -t --mount type=bind,source=$GITHUB_WORKSPACE,target=/catkin_ws ov_maplab /bin/bash -c
"cd /catkin_ws
&& catkin init
&& catkin config --merge-devel
&& catkin config --extend /opt/ros/noetic
&& catkin build ov_maplab"
- name: Run Simulation!
run: |
docker run -t --mount type=bind,source=$GITHUB_WORKSPACE,target=/catkin_ws ov_plane /bin/bash -c "cd /catkin_ws && source devel/setup.bash && roslaunch ov_plane simulation.launch verbosity:=WARNING"
docker run -t --mount type=bind,source=$GITHUB_WORKSPACE,target=/catkin_ws ov_maplab /bin/bash -c "cd /catkin_ws && source devel/setup.bash && roslaunch ov_plane simulation.launch verbosity:=WARNING"

0 comments on commit ce46b17

Please sign in to comment.