Skip to content

Commit

Permalink
Fixing CI. (#250)
Browse files Browse the repository at this point in the history
* [CI] Added trigger on push on main branch

* [CI] Fixing CI. Moving asan check to jammy humble.

* [CI] Reusable asan workflow

* [CI] New tsan workflow

Signed-off-by: Esteban Martinena <orensbruli@gmail.com>
  • Loading branch information
orensbruli committed Dec 12, 2022
1 parent e5a8009 commit 3c17991
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 50 deletions.
65 changes: 22 additions & 43 deletions .github/workflows/asan.yaml
@@ -1,45 +1,24 @@
name: asan
on: [push, pull_request]

on:
pull_request:
push:
branches:
- main
workflow_dispatch:

jobs:
asan:
name: asan
runs-on: ubuntu-20.04
container:
image: rostooling/setup-ros-docker:ubuntu-focal-latest
steps:
- name: deps
uses: ros-tooling/setup-ros@v0.3
with:
required-ros-distributions: galactic
- name: install_clang
run: sudo apt update && sudo apt install -y clang clang-tools lld
- name: build_and_test
uses: ros-tooling/action-ros-ci@v0.2
env:
CC: clang
CXX: clang++
ASAN_OPTIONS: detect_leaks=0
with:
target-ros2-distro: galactic
# build all packages listed in the meta package
package-name: |
rmf_traffic_ros2
rmf_task_ros2
rmf_fleet_adapter
vcs-repo-file-url: |
https://raw.githubusercontent.com/open-rmf/rmf/main/rmf.repos
colcon-defaults: |
{
"build": {
"mixin": ["asan-gcc", "lld"],
"cmake-args": ["-DCMAKE_BUILD_TYPE=Debug"],
"executor": "sequential"
}
}
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml
- name: upload_test_stream
uses: actions/upload-artifact@v2
with:
name: colcon-test-logs
path: ${{ steps.build_and_test.outputs.ros-workspace-directory-name }}/log/latest_test/rmf_traffic/streams.log
if: always()
asan_test:
name: rmf_ros2 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_ros2
rmf_task_ros2
rmf_fleet_adapter
mixin: asan

6 changes: 4 additions & 2 deletions .github/workflows/build.yaml
@@ -1,10 +1,12 @@
name: build
on:
push:
pull_request:
push:
branches:
- main
workflow_dispatch:
schedule:
- cron: '23 0 * * *'
workflow_dispatch:

jobs:
build_and_test:
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/gh-pages.yaml
@@ -1,12 +1,16 @@
name: github pages
on:
pull_request:
push:
branches: [ master ]
branches:
- main
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
container:
image: docker://ros:foxy-ros-base-focal
image: rostooling/setup-ros-docker:ubuntu-jammy-latest
steps:
- name: download-deps
run: |
Expand All @@ -29,12 +33,12 @@ jobs:
run: |
cd rmf_ws
rosdep update
rosdep install --from-paths src --ignore-src --rosdistro foxy -yr
rosdep install --from-paths src --ignore-src --rosdistro humble -yr
- name: build
shell: bash
run: |
cd rmf_ws
source /opt/ros/foxy/setup.bash
source /opt/ros/humble/setup.bash
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
- name: gen_docs
shell: bash
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/tsan.yaml
@@ -0,0 +1,24 @@
name: tsan

on:
pull_request:
push:
branches:
- main
workflow_dispatch:

jobs:
tsan_test:
name: rmf_ros2 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_ros2
rmf_task_ros2
rmf_fleet_adapter
mixin: tsan

0 comments on commit 3c17991

Please sign in to comment.