Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
226 views
in Technique[技术] by (71.8m points)

Github Action and ROS

I have a (private) repo where I am now just trying to save the list of ros msgs on a file. I have the following main.yml file in .github/workflows/:

name: ROS kinetic CI
on: [push]
jobs:
  build:
    runs-on: ubuntu-16.04
    container: ros:kinetic
    services: 
      ros: 
        image: ros
    steps:
      - name: Check out repository code
        uses: actions/checkout@v2
      - name: Save all ros msgs into a file
        run: rosmsg list > ros_msg_list.txt

When the job runs, it fails on that job that calls rosmsg with the error:

Run rosmsg list > ros_msg_list.txt
  rosmsg list > ros_msg_list.txt
  shell: sh -e {0}
/__w/_temp/a3af4a58-e885-4af2-ab31-016bd46cd1d5.sh: 1: /__w/_temp/a3af4a58-e885-4af2-ab31-016bd46cd1d5.sh: rosmsg: not found
Error: Process completed with exit code 127.

What am I missing here? I run locally docker run -it ros:kinetic bash and inside the container I can directly run rosmsg show without any issues. Thanks for the help.

question from:https://stackoverflow.com/questions/65944261/github-action-and-ros

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...