Skip to content

Commit ac85bf2

Browse files
committed
add Realtime Sanitizer in CI
only run on ubuntu-latest add fail-fast strategy for rtsan build continue on error (rtsan) add rtsan build in the check list display correct name on RTsan CI only use run test use || true as continue on error is not working as expected build first, then test display a warning when rtsan fails
1 parent 9e456ec commit ac85bf2

File tree

1 file changed

+42
-4
lines changed

1 file changed

+42
-4
lines changed

.github/workflows/macos-linux-windows-pixi.yml

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: CI - MacOS/Linux/Windows via Pixi
22

33
on:
44
schedule:
5-
- cron: '0 0 * * 1'
5+
- cron: "0 0 * * 1"
66
push:
77
branches:
88
- devel
99
paths-ignore:
1010
- doc/**
1111
- .gitlab-ci.yml
1212
- .gitignore
13-
- '**.md'
13+
- "**.md"
1414
- CITATION.*
1515
- COPYING.LESSER
1616
- colcon.pkg
@@ -20,7 +20,7 @@ on:
2020
- doc/**
2121
- .gitlab-ci.yml
2222
- .gitignore
23-
- '**.md'
23+
- "**.md"
2424
- CITATION.*
2525
- COPYING.LESSER
2626
- colcon.pkg
@@ -69,7 +69,6 @@ jobs:
6969
build_type: Release
7070
BUILD_ADVANCED_TESTING: OFF
7171

72-
7372
steps:
7473
# extract branch name or checkout devel branch for scheduled events
7574
- name: Get branch name or checkout devel
@@ -264,12 +263,51 @@ jobs:
264263
run: |
265264
pixi run -e test-pixi-build test
266265
266+
pinocchio-rtsan-build:
267+
name: RTSan build - ${{ matrix.os }}
268+
runs-on: ${{ matrix.os }}
269+
270+
strategy:
271+
fail-fast: false
272+
matrix:
273+
include:
274+
- os: ubuntu-latest
275+
name: Ubuntu (x86_64)
276+
277+
- os: macos-latest
278+
name: MacOS (ARM64)
279+
280+
steps:
281+
- uses: actions/checkout@v5
282+
with:
283+
submodules: recursive
284+
285+
- uses: prefix-dev/[email protected]
286+
with:
287+
cache: true
288+
289+
- name: Build with RTSan
290+
run: |
291+
pixi run -e sanitizers build
292+
293+
- name: Test with RTSan
294+
run: |
295+
set +e
296+
pixi run -e sanitizers test
297+
EXIT_CODE=$?
298+
if [ $EXIT_CODE -ne 0 ]; then
299+
echo "::warning::Realtime Sanitizers tests failed"
300+
fi
301+
267302
check:
268303
if: always()
269304
name: check-macos-linux-windows-pixi
270305

271306
needs:
272307
- pinocchio-pixi
308+
- pinocchio-python-standalone-pixi
309+
- pinocchio-pixi-build
310+
- pinocchio-rtsan-build
273311

274312
runs-on: Ubuntu-latest
275313

0 commit comments

Comments
 (0)