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

azure-pipelines.yml: Fix ros:rolling CI #60

Merged
merged 1 commit into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CI/dependencies_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Base Image Updates
sudo apt-get update -y
sudo apt-get install -y git cmake build-essential apt-utils libssl-dev wget
sudo apt-get install -y git gcc-9 g++-9 cmake build-essential apt-utils libssl-dev wget

# Install cmake v3.20
wget https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0.tar.gz
Expand All @@ -24,7 +24,7 @@ sudo apt-get install libssl-dev
git clone --branch v3.1-stable --depth 1 https://github.com/warmcat/libwebsockets
cd libwebsockets
mkdir build_3_1 && cd build_3_1
sudo cmake -DLWS_WITH_SSL=OFF -DLWS_STATIC_PIC=ON -DCMAKE_INSTALL_PREFIX=/opt/websockets ..
sudo cmake -DCMAKE_C_COMPILER=gcc-9 -DCMAKE_CXX_COMPILER=g++-9 -DLWS_WITH_SSL=OFF -DLWS_STATIC_PIC=ON -DCMAKE_INSTALL_PREFIX=/opt/websockets ..
sudo cmake --build . --target install

# Install Protobuf
Expand Down
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ steps:
cd ToF
mkdir build
cd build
sudo cmake -DWITH_EXAMPLES=off -DCMAKE_PREFIX_PATH="/opt/glog;/opt/protobuf;/opt/websockets" ..
sudo cmake -DCMAKE_C_COMPILER=gcc-9 -DCMAKE_CXX_COMPILER=g++-9 -DWITH_EXAMPLES=off -DCMAKE_PREFIX_PATH="/opt/glog;/opt/protobuf;/opt/websockets" ..
sudo make install .

displayName: 'ToF Build'
Expand Down Expand Up @@ -80,6 +80,6 @@ steps:
git clone -b ${{ variables.BRANCH_NAME }} https://github.com/analogdevicesinc/tof-ros2
cd ../
source /opt/ros/rolling/setup.sh
colcon build
colcon build --cmake-args -DCMAKE_C_COMPILER=gcc-9 -DCMAKE_CXX_COMPILER=g++-9
condition: eq( variables['buildContainer'], 'ubuntu_22_04_ros2_rolling' )
displayName: 'ros2_rolling'