-
Notifications
You must be signed in to change notification settings - Fork 998
37 lines (34 loc) · 1.2 KB
/
sanitizers.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
name: R-CMD-check-sanitized
concurrency:
group: ${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
on:
push:
branches:
- master
- GHA-sanitizers # during development
workflow_dispatch:
pull_request:
jobs:
linux-containers:
runs-on: ubuntu-latest
name: "Check with sanitizers enabled"
strategy:
fail-fast: false
container:
image: docker://ghcr.io/r-hub/containers/clang-asan
steps:
- uses: r-hub/actions/checkout@v1
- uses: r-hub/actions/platform-info@v1
- uses: r-hub/actions/setup-deps@v1
- name: "Additional setup"
run: |
# this should at least help with the build step
echo "MAKEFLAGS=-j$(nproc)" >> $GITHUB_ENV
# fontconfig is known to leak; add more suppressions as discovered
echo "LSAN_OPTIONS=suppressions=$(realpath .github/workflows/LSan.supp)" >> $GITHUB_ENV
# disabled by default, so reenable (needs suppressions above)
echo "ASAN_OPTIONS=detect_leaks=1" >> $GITHUB_ENV
# see r-hub/containers#84
sed -i 's/-fsanitize-trap\S*//g' /opt/R/devel-asan/lib/R/etc/Makeconf
- uses: r-hub/actions/run-check@v1