From 88c069b2b3f8bb437dcc2483a3e0c9167d917958 Mon Sep 17 00:00:00 2001 From: Esteban Martinena Guerrero Date: Tue, 26 Mar 2024 04:10:08 +0100 Subject: [PATCH] [CI] Updating workflows (#457) Signed-off-by: Esteban Martinena Signed-off-by: Luca Della Vedova Co-authored-by: Yadu Co-authored-by: Luca Della Vedova --- .github/workflows/asan.yaml | 23 ++++++++++++++ .github/workflows/build.yaml | 19 ++++++++++++ .github/workflows/ci.yaml | 49 ----------------------------- .github/workflows/ci_rolling.yaml | 51 ------------------------------- .github/workflows/tsan.yaml | 23 ++++++++++++++ 5 files changed, 65 insertions(+), 100 deletions(-) create mode 100644 .github/workflows/asan.yaml create mode 100644 .github/workflows/build.yaml delete mode 100644 .github/workflows/ci.yaml delete mode 100644 .github/workflows/ci_rolling.yaml create mode 100644 .github/workflows/tsan.yaml diff --git a/.github/workflows/asan.yaml b/.github/workflows/asan.yaml new file mode 100644 index 00000000..3499ad52 --- /dev/null +++ b/.github/workflows/asan.yaml @@ -0,0 +1,23 @@ +name: asan + +on: + pull_request: + push: + branches: + - main + workflow_dispatch: + +jobs: + asan_test: + name: rmf_traffic_editor asan + uses: open-rmf/rmf_ci_templates/.github/workflows/reusable_build.yaml@main + with: + dist-matrix: | + [{"ros_distribution": "humble", + "ubuntu_distribution": "jammy"}] + # NOTE: Avoid adding comments in the package lines, this can break some of the called scripts in github actions + packages: | + rmf_traffic_editor + rmf_traffic_editor_test_maps + mixin: asan + \ No newline at end of file diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 00000000..c478ba2c --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,19 @@ +name: build +on: + pull_request: + push: + branches: + - main + workflow_dispatch: + schedule: + - cron: '0 0 1 * *' + +jobs: + build_and_test: + name: rmf_traffic_editor + uses: open-rmf/rmf_ci_templates/.github/workflows/reusable_build.yaml@main + with: + # NOTE: Avoid adding comments in the package lines, this can break some of the called scripts in github actions + packages: | + rmf_traffic_editor + rmf_traffic_editor_test_maps \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index 8b2f4d8b..00000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,49 +0,0 @@ -name: ci -on: [push] -jobs: - ci: - runs-on: ubuntu-20.04 - container: - image: docker://ros:galactic-ros-base-focal - - steps: - - name: ros-workspace - run: | - mkdir -p ws/src - - - name: checkout - uses: actions/checkout@v2 - with: - path: ws/src/rmf_traffic_editor - - - name: non-ros-deps - run: | - sudo apt-get update - sudo apt-get install -y git cmake wget libyaml-cpp-dev qt5-default libceres-dev libeigen3-dev python3-shapely python3-requests python3-yaml python3-pyproj python3-fiona python3-rtree libproj-dev - - - name: rmf-pkgs - run: | - sudo apt-get update - sudo apt-get install -y ros-galactic-rmf-utils - - - name: build - shell: bash - run: | - cd ws - source /opt/ros/galactic/setup.bash - colcon build --packages-select rmf_traffic_editor --cmake-args -DNO_DOWNLOAD_MODELS=True - colcon build --packages-up-to rmf_traffic_editor_test_maps --cmake-args -DNO_DOWNLOAD_MODELS=True - - - name: test - shell: bash - run: | - cd ws - source /opt/ros/galactic/setup.bash - QT_QPA_PLATFORM=offscreen colcon test --packages-select rmf_traffic_editor - - - name: test-results - shell: bash - run: | - cd ws - source /opt/ros/galactic/setup.bash - colcon test-result --verbose diff --git a/.github/workflows/ci_rolling.yaml b/.github/workflows/ci_rolling.yaml deleted file mode 100644 index 2f32c065..00000000 --- a/.github/workflows/ci_rolling.yaml +++ /dev/null @@ -1,51 +0,0 @@ -name: ci_rolling -on: [push] -jobs: - ci_rolling: - runs-on: ubuntu-20.04 - container: - image: docker://ros:rolling-ros-base-jammy - - steps: - - name: ros-workspace - run: | - mkdir -p ws/src - - - name: checkout - uses: actions/checkout@v2 - with: - path: ws/src/rmf_traffic_editor - - - name: checkout - uses: actions/checkout@v2 - with: - repository: open-rmf/rmf_utils - path: ws/src/rmf_utils - - - name: non-ros-deps - run: | - sudo apt-get update - sudo apt-get install -y git cmake wget libyaml-cpp-dev qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libceres-dev libeigen3-dev python3-shapely python3-requests python3-yaml python3-pyproj python3-fiona python3-rtree libproj-dev - - - name: build - shell: bash - run: | - cd ws - source /opt/ros/rolling/setup.bash - colcon build --packages-select rmf_utils - colcon build --packages-select rmf_traffic_editor --cmake-args -DNO_DOWNLOAD_MODELS=True - colcon build --packages-up-to rmf_traffic_editor_test_maps --cmake-args -DNO_DOWNLOAD_MODELS=True - - - name: test - shell: bash - run: | - cd ws - source /opt/ros/rolling/setup.bash - QT_QPA_PLATFORM=offscreen colcon test --packages-select rmf_traffic_editor - - - name: test-results - shell: bash - run: | - cd ws - source /opt/ros/rolling/setup.bash - colcon test-result --verbose diff --git a/.github/workflows/tsan.yaml b/.github/workflows/tsan.yaml new file mode 100644 index 00000000..50191788 --- /dev/null +++ b/.github/workflows/tsan.yaml @@ -0,0 +1,23 @@ +name: tsan + +on: + pull_request: + push: + branches: + - main + workflow_dispatch: + +jobs: + tsan_test: + name: rmf_traffic_editor tsan + uses: open-rmf/rmf_ci_templates/.github/workflows/reusable_build.yaml@main + with: + dist-matrix: | + [{"ros_distribution": "humble", + "ubuntu_distribution": "jammy"}] + # NOTE: Avoid adding comments in the package lines, this can break some of the called scripts in github actions + packages: | + rmf_traffic_editor + rmf_traffic_editor_test_maps + mixin: tsan + \ No newline at end of file