Add Red-Teaming SAM paper #122
Workflow file for this run
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: | |
pull_request: | |
branches: | |
- main | |
name: check PR | |
jobs: | |
build: | |
runs-on: macOS-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Setup R | |
uses: r-lib/actions/setup-r@v2 | |
- name: Install pandoc and pandoc citeproc | |
run: | | |
brew install pandoc | |
- name: Cache Renv packages | |
uses: actions/cache@v1 | |
with: | |
path: $HOME/.local/share/renv | |
key: r-${{ hashFiles('renv.lock') }} | |
restore-keys: r- | |
- name: Cache bookdown results | |
uses: actions/cache@v1 | |
with: | |
path: _bookdown_files | |
key: bookdown-${{ hashFiles('**/*Rmd') }} | |
restore-keys: bookdown- | |
- name: Install packages | |
run: | | |
R -e 'install.packages("renv")' | |
R -e 'install.packages("bookdown")' | |
R -e 'install.packages("ggplot2")' | |
R -e 'install.packages("svglite")' | |
R -e 'install.packages("dplyr")' | |
R -e 'install.packages("kableExtra")' | |
R -e 'install.packages("corrplot")' | |
R -e 'install.packages("tidyr")' | |
R -e 'install.packages("reshape2")' | |
R -e 'renv::restore()' | |
- name: Build site | |
run: Rscript -e 'bookdown::render_book("index.Rmd", quiet = TRUE)' |