-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yadunund <[email protected]>
- Loading branch information
Showing
1 changed file
with
9 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,25 +33,16 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
include: ${{ fromJson(inputs.dist-matrix) }} | ||
|
||
name: Build and test | ||
runs-on: ubuntu-latest | ||
container: | ||
# TODO: check if "desktop" is really needed for the builds or tests | ||
image: osrf/ros:${{ matrix.ros_distribution }}-desktop-${{ matrix.ubuntu_distribution }} | ||
image: osrf/ros:${{ matrix.ros_distribution }}-desktop-full-${{ matrix.ubuntu_distribution }} | ||
steps: | ||
- name: install_clang_and_tools | ||
run: sudo apt update && sudo apt install -y clang clang-tools lld wget python3-pip python3-colcon-coveragepy-result python3-colcon-lcov-result lcov | ||
# TODO: Remove this step when the incompatibility between libunwind14 and libundind dissapears https://github.com/open-rmf/rmf_traffic_editor/issues/439 | ||
- name: Horrible hack for libceres | ||
run: | | ||
apt-get remove -y --purge libc++-dev || true | ||
apt-get remove -y --purge libc++abi-dev || true | ||
apt-get remove -y --purge libunwind-14-dev || true | ||
apt-get remove -y --purge libunwind-14-dev || true | ||
apt-get remove -y --purge libunwind-dev || true | ||
apt -y autoremove | ||
if: ${{ matrix.ubuntu_distribution == 'jammy'}} | ||
- name: Setup ROS | ||
uses: ros-tooling/[email protected] | ||
- name: instal_tools | ||
run: sudo apt update && sudo apt install -y wget python3-pip python3-colcon-coveragepy-result python3-colcon-lcov-result lcov | ||
- name: create_blacklist | ||
run: | | ||
mkdir -p ${{ github.workspace }}/ | ||
|
@@ -64,21 +55,21 @@ jobs: | |
run: | | ||
case ${{ inputs.mixin }} in | ||
asan) | ||
echo 'colcon_defaults={"build":{"mixin":["asan-gcc","lld"],"cmake-args":["-DCMAKE_BUILD_TYPE=Debug"],"executor":"sequential"}}' >> $GITHUB_OUTPUT | ||
echo 'colcon_defaults={"build":{"mixin":["asan-gcc"],"cmake-args":["-DCMAKE_BUILD_TYPE=Debug"],"executor":"sequential"}}' >> $GITHUB_OUTPUT | ||
;; | ||
tsan) | ||
echo 'colcon_defaults={"build":{"mixin":["tsan"],"cmake-args":["-DCMAKE_BUILD_TYPE=Debug"]}}' >> $GITHUB_OUTPUT | ||
;; | ||
*) | ||
echo 'colcon_defaults={"build": {"mixin": ["coverage-gcc", "lld" ]}}' >> $GITHUB_OUTPUT | ||
echo 'colcon_defaults={"build": {"mixin": ["coverage-gcc"]}}' >> $GITHUB_OUTPUT | ||
;; | ||
esac | ||
- name: build_and_test | ||
uses: ros-tooling/[email protected] | ||
env: | ||
LANG: en_US.UTF-8 | ||
CC: clang -fsanitize-blacklist=${{ github.workspace }}/blacklist.txt | ||
CXX: clang++ -fsanitize-blacklist=${{ github.workspace }}/blacklist.txt | ||
CC: gcc -fsanitize-blacklist=${{ github.workspace }}/blacklist.txt | ||
CXX: g++ -fsanitize-blacklist=${{ github.workspace }}/blacklist.txt | ||
QT_QPA_PLATFORM: offscreen | ||
# We have some new_delete_type_mismatch errors that looks like to come from rclcpp | ||
ASAN_OPTIONS: detect_leaks=0:new_delete_type_mismatch=0 | ||
|