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 2b61ece
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 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,13 +55,13 @@ 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
Expand Down

0 comments on commit 2b61ece

Please sign in to comment.