-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (34 loc) · 1.31 KB
/
test_ubuntu_san.yml
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
name: Check with Sanitizer
on:
pull_request:
branches: ["main", "development"]
workflow_dispatch:
permissions:
contents: read
jobs:
check-as-cran:
runs-on: ubuntu-latest
container:
image: rocker/r-devel-san:latest
steps:
- name: install sudo, git, etc
run: |
apt update && apt install -y sudo
sudo apt install -y git
sudo apt install -y libssl-dev
sudo apt install -y libxml2-dev
- uses: actions/checkout@v3
with:
submodules: 'true'
- uses: r-lib/actions/setup-pandoc@v1
- name: install dependencies
run: |
install.packages(c("Rcpp", "RcppArmadillo", "RcppParallel", "ggplot2", "tidyr", "stringr", "numDeriv", "rlang", "mvtnorm", "knitr", "plotly", "rmarkdown", "Rsolnp", "lavaan", "devtools", "testthat", "rcmdcheck", "glmnet"))
shell: RDscript {0}
#- name: Run checks with extend compiler flags
# run: |
# withr::with_makevars(c("PKG_CXXFLAGS" = "$(SHLIB_OPENMP_CXXFLAGS) -I../inst/include/ -Wall -pedantic -fdiagnostics-color=always -fsanitize=address"),
# devtools::check())
# shell: Rscript {0}
- name: Check package
run: RD CMD build . && RD CMD check $(ls -t . | head -n1)