Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build with github action #9

Closed
lucasw opened this issue Nov 22, 2020 · 3 comments · Fixed by #15
Closed

build with github action #9

lucasw opened this issue Nov 22, 2020 · 3 comments · Fixed by #15

Comments

@lucasw
Copy link
Owner

lucasw commented Nov 22, 2020

Mostly interested in building the ros package. Install rust and minimal ros packages and then build rsc_test.

Build just in 20.04 noetic.

Also a github action for rosrust itself?
adnanademovic/rosrust@7cf2d89 tried that but actions weren't free back then?

Have it working in https://github.com/lucasw/rosrust/tree/github_action

@lucasw
Copy link
Owner Author

lucasw commented Nov 23, 2020

Resolved by #10

@lucasw lucasw closed this as completed Nov 23, 2020
@lucasw lucasw reopened this Nov 26, 2020
@lucasw
Copy link
Owner Author

lucasw commented Nov 26, 2020

docker run --rm -it ros:noetic-robot bash -c "\
echo $CMAKE_PREFIX_PATH && \
apt update && \
apt install -y curl git python3-catkin-tools python3-osrf-pycommon && \
catkin --version && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
source /root/.cargo/env && \
source /opt/ros/noetic/setup.bash && \
git clone https://github.com/AndrewGaspar/corrosion.git &&\
cmake -Scorrosion -Bbuild_corrosion -DCMAKE_BUILD_TYPE=Release && \
cmake --build build_corrosion --config Release && \
mkdir -p $HOME/other/install && \
cmake --install build_corrosion --config Release --prefix $HOME/other/install && \
git clone https://github.com/lucasw/rust_test.git && \
export CMAKE_PREFIX_PATH=$HOME/other/install:$CMAKE_PREFIX_PATH && \
mkdir -p catkin_ws/src && \
cd catkin_ws/src && \
ln -s ../../rust_test/ros/rsc_test && \
cd .. && \
catkin build 
"

@lucasw
Copy link
Owner Author

lucasw commented Nov 26, 2020

This fails
docker run --rm -it ros:noetic-robot bash -c "catkin --version"

Have to run updates

docker run --rm -it ros:noetic-robot bash -c "sudo apt update && sudo apt install -y python3-catkin-tools python3-osrf-pycommon && catkin --version"

And the install osrf pycommon and other packages.

How to trigger update of noetic-robot?
Open an issue on https://github.com/osrf/docker_images ?
Maybe the devel case is already covered by osrf/docker_images#408

How to make sure using latest locally?

docker pull ros:noetic-robot
noetic-robot: Pulling from library/ros
Digest: sha256:662fa31293b0df72b29dbbc174e227db06be678d9ad06499a81f736ebac88cb5
Status: Image is up to date for ros:noetic-robot
docker.io/library/ros:noetic-robot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant