Flexible cell assignments simpler #84
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
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples | |
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
on: | |
push: | |
branches: ['*'] # Run CI on all branches to allow pre-PR testing | |
pull_request: | |
branches: [main, dev] | |
name: R-CMD-check | |
jobs: | |
R-CMD-check: | |
runs-on: ${{ matrix.config.os }} | |
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- {os: macOS-latest, r: 'release'} | |
- {os: ubuntu-latest, r: 'release'} | |
- {os: ubuntu-latest, r: 'oldrel-1'} | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
R_KEEP_PKG_SOURCE: yes | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install system dependencies | |
run: | | |
if [[ "$RUNNER_OS" == "Linux" ]]; then | |
sudo apt-get update | |
sudo apt-get install -y build-essential libhdf5-dev libcurl4-openssl-dev libxml2-dev libssl-dev | |
elif [[ "$RUNNER_OS" == "macOS" ]]; then | |
brew update | |
brew install hdf5 curl libxml2 openssl | |
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.zshrc | |
else | |
echo "Unsupported OS: $RUNNER_OS" | |
exit 1 | |
fi | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: ${{ matrix.config.r }} | |
http-user-agent: ${{ matrix.config.http-user-agent }} | |
use-public-rspm: true | |
- name: Install ondisc R package (macOS only) | |
if: ${{ matrix.config.os == 'macOS-latest' }} | |
run: | | |
Rscript -e "if (!requireNamespace('remotes', quietly = TRUE)) install.packages('remotes')" | |
Rscript -e "remotes::install_github('timothy-barry/ondisc')" | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: rcmdcheck | |
- uses: r-lib/actions/check-r-package@v2 |