Skip to content

Commit

Permalink
update pak, add pkg-config as osx dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
adokter committed Aug 12, 2024
1 parent d1c6a8e commit 7485c26
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Install macOS system dependencies
if: runner.os == 'macOS'
run: |
env HOMEBREW_NO_AUTO_UPDATE=1 brew install hdf5 proj gsl
env HOMEBREW_NO_AUTO_UPDATE=1 brew install hdf5 proj gsl pkg-config
- uses: r-lib/actions/setup-r-dependencies@v2
with:
Expand All @@ -52,19 +52,19 @@ jobs:
- name: Install Linux system dependencies
if: runner.os == 'Linux'
run: |
pak::local_system_requirements(execute = TRUE)
pak::pkg_system_requirements("rcmdcheck", execute = TRUE)
pak::pkg_system_requirements("proj4", execute = TRUE) # Using same proj for now...
pak::pkg_system_requirements("hdf5r", execute = TRUE) # Using same hdf5 for now...
pak::pkg_sysreqs("local::.", dependencies = TRUE)$install_script
pak::pkg_sysreqs("rcmdcheck")$install_scripts
pak::pkg_sysreqs("proj4")$install_scripts
pak::pkg_sysreqs("hdf5r")$install_scripts
shell: Rscript {0}
- name: Install dependencies
run: |
# set upgrade to FALSE because otherwise several package that are not strict dependencies
# (like terra) get triggered to build and fail
pak::local_install_deps(upgrade = FALSE)
pak::pkg_install("rcmdcheck")
pak::pkg_install("rmarkdown")
pak::pkg_install("markdown")
pak::pkg_sysreqs("local::.", dependencies = TRUE, upgrade=FALSE)$install_script
pak::pkg_sysreqs("rcmdcheck")$install_scripts
pak::pkg_sysreqs("rmarkdown")$install_scripts
pak::pkg_sysreqs("markdown")$install_scripts
shell: Rscript {0}

- uses: r-lib/actions/check-r-package@v2
Expand Down

0 comments on commit 7485c26

Please sign in to comment.