This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- devel | |
- ubsan-errors | |
pull_request: | |
branches: | |
- devel | |
name: Test package for UBSAN issues | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | |
ASAN_OPTIONS: detect_leaks=0 | |
jobs: | |
R-CMD-check: | |
runs-on: ubuntu-latest | |
container: | |
image: ${{ matrix.config.image }} | |
name: ${{ matrix.config.name }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- { name: gcc-san, image: rocker/r-devel-san} | |
- { name: clang-ubsan, image: rocker/r-devel-ubsan-clang} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache Dependencies | |
id: cache-deps | |
uses: actions/cache@v4 | |
with: | |
path: /usr/local/lib/R/site-library | |
key: R_lib-${{ matrix.config.name }}-${{ hashFiles('**/DESCRIPTION') }} | |
restore-keys: | | |
R_lib-${{ matrix.config.name }}-${{ hashFiles('**/DESCRIPTION') }} | |
R_lib-${{ matrix.config.name }}- | |
- name: Install system libraries | |
run: | | |
apt-get update && apt-get -y install git pandoc | |
- name: Set R profile | |
run: echo 'options(Ncpus=4L, timeout = 300)' > $HOME/.Rprofile | |
- name: Install packages | |
run: | | |
install.packages("BiocManager") | |
BiocManager::install("rhdf5") | |
shell: Rscriptdevel {0} | |
- name: Bioc - Build, Install, Check | |
id: build-install-check | |
uses: grimbough/bioc-actions/build-install-check@v1 | |
## upload the Rcheck folder if the workflow fails | |
- name: Upload output | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.config.name }}-R-check | |
path: | | |
${{ steps.build-install-check.outputs.check-dir }} |