-
Notifications
You must be signed in to change notification settings - Fork 26
53 lines (52 loc) · 1.83 KB
/
asan.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: asan
on:
pull_request:
schedule:
- cron: '42 0 * * *'
jobs:
asan:
name: asan
runs-on: ubuntu-22.04
container:
image: osrf/ros:jazzy-desktop-noble
steps:
- name: create_blacklist
run: |
mkdir -p ${{ github.workspace }}/
touch ${{ github.workspace }}/blacklist.txt
echo "fun:*Eigen*" > ${{ github.workspace }}/blacklist.txt
- 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
- name: build_and_test
uses: ros-tooling/[email protected]
env:
CC: clang -fsanitize-blacklist=${{ github.workspace }}/blacklist.txt
CXX: clang++ -fsanitize-blacklist=${{ github.workspace }}/blacklist.txt
with:
target-ros2-distro: jazzy
# build all packages listed in the meta package
package-name: |
rmf_traffic
vcs-repo-file-url: |
https://raw.githubusercontent.com/open-rmf/rmf/main/rmf.repos
colcon-defaults: |
{
"build": {
"mixin": ["asan-gcc"],
"cmake-args": [
"-DCMAKE_BUILD_TYPE=Debug"]
}
}
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml
- name: Upload failed test results
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-results
path: ros_ws/build/*/test_results/*/*.catch2.xml
- name: upload_test_stream
uses: actions/upload-artifact@v4
with:
name: colcon-test-logs
path: ${{ steps.build_and_test.outputs.ros-workspace-directory-name }}/log
if: always()