Skip to content

Commit

Permalink
adjust sf dependency install
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch committed Jul 26, 2021
1 parent 660fb7e commit a93b496
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,30 @@ jobs:

- uses: r-lib/actions/setup-pandoc@v1

- name: "Install Linux system libs for sf"
if: runner.os == 'Linux'
run: sudo apt install libcurl4-openssl-dev libgit2-dev

- name: "Install curl for sf"
run: |
Rscript -e "if (!requireNamespace('remotes')) install.packages('remotes', type = 'source')"
Rscript -e "if (getRversion() < '3.2' && !requireNamespace('curl')) install.packages('curl', type = 'source')"
- name: "Install Linux spatial libraries"
if: runner.os == 'Linux'
run: sudo apt-get install libgdal-dev libproj-dev libgeos-dev libudunits2-dev

- name: "Install macOS spatial libraries"
if: runner.os == 'macOS'
run: |
# conflicts with gfortran from r-lib/actions when linking gcc
rm '/usr/local/bin/gfortran'
brew install pkg-config gdal proj geos
- name: "Install maOS libgit2"
if: runner.os == 'macOS'
run: brew install libgit2

- name: Install pak and query dependencies
run: |
install.packages("pak", repos = "https://r-lib.github.io/p/pak/dev/")
Expand Down

0 comments on commit a93b496

Please sign in to comment.