Skip to content

Commit 7f5be01

Browse files
committed
fixing build action
1 parent cfb2c71 commit 7f5be01

1 file changed

Lines changed: 9 additions & 47 deletions

File tree

.github/workflows/buildTest.yml

Lines changed: 9 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -6,64 +6,26 @@ jobs:
66
# Set the job key. The key is displayed as the job name
77
# when a job name is not provided
88
build-test:
9-
# Name the Job
9+
runs-on: ubuntu-latest
1010
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
1413
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
3914
- name: Checkout code
4015
uses: actions/checkout@v2
4116
with:
4217
submodules: 'recursive'
43-
44-
# Checkout and build amrl_msgs
4518
- name: Get amrl_msgs
4619
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
5122
cd amrl_msgs
5223
make
53-
54-
55-
# Checkout and build amrl_maps
5624
- name: Get amrl_maps
5725
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
6428
- name: Run build
6529
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

Comments
 (0)