2525 # Begin custom: services
2626 # End custom: services
2727 env :
28+ R_REMOTES_NO_ERRORS_FROM_WARNINGS : true
2829 RSPM : " https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"
2930 GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
3031 # prevent rgl issues because no X11 display is available
4041
4142 - uses : actions/checkout@v2
4243
44+ - name : Install pkgdown sysdeps
45+ if : runner.os == 'Linux'
46+ env :
47+ RHUB_PLATFORM : linux-x86_64-ubuntu-gcc
48+ run : |
49+ # Needed because of install-r: false
50+ sudo apt-get update
51+ # For some reason harfbuzz and gert are installed from source and needs this
52+ sudo apt-get install -y libharfbuzz-dev libfribidi-dev libgit2-dev
53+
54+ - name : Configure Git identity
55+ if : github.event_name == 'push'
56+ run : |
57+ env | sort
58+ git config --local user.name "$GITHUB_ACTOR"
59+ git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
60+ shell : bash
61+
4362 # Begin custom: before install
4463 # End custom: before install
4564
@@ -56,42 +75,33 @@ jobs:
5675 shell : Rscript {0}
5776
5877 - name : Query dependencies
78+ if : runner.os != 'Windows'
5979 run : |
6080 saveRDS(remotes::dev_package_deps(dependencies = TRUE, type = .Platform$pkgType), ".github/depends.Rds", version = 2)
6181 writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
6282 shell : Rscript {0}
6383
6484 - name : Restore R package cache
85+ if : runner.os != 'Windows'
6586 uses : actions/cache@v2
6687 with :
6788 path : ${{ env.R_LIBS_USER }}
6889 key : ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
6990 restore-keys : ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
7091
71- - name : Configure Git identity
72- if : github.event_name == 'push'
73- run : |
74- env | sort
75- git config --local user.name "$GITHUB_ACTOR"
76- git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
77- shell : bash
78-
7992 - name : Install system dependencies
8093 if : runner.os == 'Linux'
8194 run : |
82- sudo apt-get update
8395 while read -r cmd
8496 do
8597 eval sudo $cmd
8698 done < <(Rscript -e 'req <- remotes::system_requirements("ubuntu", "18.04"); if (length(req) > 0) cat(req, sep = "\n")')
8799
88- - name : Install pkgdown sysdeps
100+ - name : Add fake qpdf and checkbashisms
89101 if : runner.os == 'Linux'
90- env :
91- RHUB_PLATFORM : linux-x86_64-ubuntu-gcc
92102 run : |
93- # For some reason harfbuzz and gert are installed from source and needs this
94- sudo apt-get install -y libharfbuzz-dev libfribidi-dev libgit2-dev
103+ sudo ln -s $(which true) /usr/local/bin/qpdf
104+ sudo ln -s $(which true) /usr/local/bin/checkbashisms
95105
96106 - name : Install dependencies
97107 run : |
@@ -105,9 +115,6 @@ jobs:
105115 # Begin custom: install
106116 # End custom: install
107117
108- - name : Install package
109- run : R CMD INSTALL . --with-keep.source --with-keep.parse.data
110-
111118 - name : Session info
112119 run : |
113120 options(width = 100)
@@ -119,6 +126,9 @@ jobs:
119126 # Begin custom: after install
120127 # End custom: after install
121128
129+ - name : Install package
130+ run : R CMD INSTALL . --with-keep.source --with-keep.parse.data
131+
122132 - name : Deploy package
123133 if : github.event_name == 'push'
124134 run : |
0 commit comments