Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Yadunund <[email protected]>
  • Loading branch information
Yadunund committed Mar 16, 2024
1 parent e364f09 commit 798bc4a
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/reusable_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}/
Expand All @@ -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
Expand Down

0 comments on commit 798bc4a

Please sign in to comment.