Skip to content

Commit

Permalink
Add UBSAN/ASAN sanitizers
Browse files Browse the repository at this point in the history
  • Loading branch information
sciome-bot committed Nov 20, 2023
1 parent ea78ffa commit 4822fbc
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/sanitizers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
workflow_dispatch:

name: sanitizers

permissions:
contents: read

jobs:
sanitizers:
runs-on: ubuntu-latest
env:
CC: clang
CXX: clang++
CXXFLAGS: "-fsanitize=undefined"
LINK: clang++
ASAN: true
UBSAN: true
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
RSPM: https://packagemanager.rstudio.com/cran/__linux__/jammy/latest
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
## R CMD check
_R_CHECK_CRAN_INCOMING_: false
_R_CHECK_LENGTH_1_CONDITION_: true
_R_CHECK_LENGTH_1_LOGIC2_: true
_R_CHECK_MATRIX_DATA_: true
## Specific to package
_R_CHECK_USE_VALGRIND_: true
UBSAN_OPTIONS: "print_stacktrace=1"

0 comments on commit 4822fbc

Please sign in to comment.