|
6 | 6 | # Set the job key. The key is displayed as the job name |
7 | 7 | # when a job name is not provided |
8 | 8 | build-test: |
9 | | - # Name the Job |
| 9 | + runs-on: ubuntu-latest |
10 | 10 | name: Build test |
11 | | - # Set the type of machine to run on |
12 | | - runs-on: ubuntu-20.04 |
13 | | - |
| 11 | + container: |
| 12 | + image: natester/roboracer_sim:latest |
14 | 13 | steps: |
15 | | - # Run package update |
16 | | - - name: Run package update |
17 | | - run: | |
18 | | - sudo apt-get update |
19 | | - sudo apt-get dist-upgrade -y |
20 | | -
|
21 | | - # Install ROS Melodic |
22 | | - - name: Install ROS Noetic |
23 | | - run: | |
24 | | - sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' |
25 | | - sudo apt install curl |
26 | | - curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add - |
27 | | - sudo apt-get update |
28 | | - sudo apt-get install ros-noetic-desktop python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential |
29 | | - sudo rosdep init |
30 | | - rosdep update |
31 | | -
|
32 | | - # Install dependencies |
33 | | - - name: Install dependencies |
34 | | - run: | |
35 | | - sudo apt-get install git libgflags-dev libpopt-dev libgoogle-glog-dev liblua5.1-0-dev libboost-all-dev libqt5websockets5-dev |
36 | | -
|
37 | | -
|
38 | | - # Checks out a copy of your repository |
39 | 14 | - name: Checkout code |
40 | 15 | uses: actions/checkout@v2 |
41 | 16 | with: |
42 | 17 | submodules: 'recursive' |
43 | | - |
44 | | - # Checkout and build amrl_msgs |
45 | 18 | - name: Get amrl_msgs |
46 | 19 | run: | |
47 | | - source /opt/ros/melodic/setup.bash |
48 | | - export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$GITHUB_WORKSPACE:$GITHUB_WORKSPACE/../amrl_msgs |
49 | | - cd $GITHUB_WORKSPACE/.. |
50 | | - git clone https://github.com/ut-amrl/amrl_msgs.git |
| 20 | + cd $HOME/roboracer_ros_ws/src |
| 21 | + git clone -b ros2 https://github.com/ut-amrl/amrl_msgs.git |
51 | 22 | cd amrl_msgs |
52 | 23 | make |
53 | | -
|
54 | | -
|
55 | | - # Checkout and build amrl_maps |
56 | 24 | - name: Get amrl_maps |
57 | 25 | run: | |
58 | | - source /opt/ros/melodic/setup.bash |
59 | | - export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$GITHUB_WORKSPACE:$GITHUB_WORKSPACE/../amrl_maps |
60 | | - cd $GITHUB_WORKSPACE/.. |
61 | | - git clone https://github.com/ut-amrl/amrl_maps.git |
62 | | -
|
63 | | - # Compiles the code |
| 26 | + cd $HOME/roboracer_ros_ws/src |
| 27 | + git clone -b master https://github.com/ut-amrl/amrl_maps.git |
64 | 28 | - name: Run build |
65 | 29 | run: | |
66 | | - source /opt/ros/melodic/setup.bash |
67 | | - export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$GITHUB_WORKSPACE:$GITHUB_WORKSPACE/../amrl_msgs:$GITHUB_WORKSPACE/../amrl_maps |
68 | | - cd $GITHUB_WORKSPACE |
69 | | - make |
| 30 | + cd $HOME/roboracer_ros_ws |
| 31 | + olcon build --cmake-args -DCMAKE_BUILD_MODE="Software" |
0 commit comments