Disable CI on macOS #108
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
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | |
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
workflow_dispatch: | |
name: R-CMD-check | |
# Only run actions on the most recent push to a branch | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.head_ref }}" | |
cancel-in-progress: true | |
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: windows-latest, r: "release" } | |
- { os: ubuntu-latest, r: "devel", http-user-agent: "release" } | |
- { os: ubuntu-latest, r: "release" } | |
- { os: ubuntu-latest, r: "oldrel-1" } | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
R_KEEP_PKG_SOURCE: yes | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | |
- name: Set up pandoc | |
uses: r-lib/actions/setup-pandoc@929c772977a3a13c8733b363bf5a2f685c25dd91 # v2 | |
- name: Set up R | |
uses: r-lib/actions/setup-r@929c772977a3a13c8733b363bf5a2f685c25dd91 # v2 | |
with: | |
r-version: ${{ matrix.config.r }} | |
http-user-agent: ${{ matrix.config.http-user-agent }} | |
use-public-rspm: true | |
# Install miniconda manually, to prevent installation errors on GHA runners | |
- name: Setup Miniconda | |
uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3.0.4 | |
- name: Install R dependencies | |
uses: r-lib/actions/setup-r-dependencies@929c772977a3a13c8733b363bf5a2f685c25dd91 # v2 | |
with: | |
extra-packages: any::rcmdcheck | |
needs: check | |
- name: Install basilisk | |
if: runner.os == 'macOS' | |
# avoids conda installation error on macOS | |
run: | | |
Rscript -e 'install.packages("BiocManager")' | |
unset DYLD_FALLBACK_LIBRARY_PATH && \ | |
Rscript -e 'BiocManager::install("basilisk", type="source")' | |
- name: Check basilisk conda installation | |
shell: Rscript {0} | |
run: | | |
basilisk.utils::getCondaDir() | |
basilisk::configureBasiliskEnv() | |
- name: Run R CMD check | |
uses: r-lib/actions/check-r-package@929c772977a3a13c8733b363bf5a2f685c25dd91 # v2 | |
with: | |
upload-snapshots: true |