-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
46 additions
and
19 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ jobs: | |
# Begin custom: services | ||
# End custom: services | ||
env: | ||
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | ||
RSPM: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest" | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
# prevent rgl issues because no X11 display is available | ||
|
@@ -40,6 +41,24 @@ jobs: | |
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Install pkgdown sysdeps | ||
if: runner.os == 'Linux' | ||
env: | ||
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc | ||
run: | | ||
# Needed because of install-r: false | ||
sudo apt-get update | ||
# For some reason harfbuzz and gert are installed from source and needs this | ||
sudo apt-get install -y libharfbuzz-dev libfribidi-dev libgit2-dev | ||
- name: Configure Git identity | ||
if: github.event_name == 'push' | ||
run: | | ||
env | sort | ||
git config --local user.name "$GITHUB_ACTOR" | ||
git config --local user.email "[email protected]" | ||
shell: bash | ||
|
||
# Begin custom: before install | ||
# End custom: before install | ||
|
||
|
@@ -56,42 +75,33 @@ jobs: | |
shell: Rscript {0} | ||
|
||
- name: Query dependencies | ||
if: runner.os != 'Windows' | ||
run: | | ||
saveRDS(remotes::dev_package_deps(dependencies = TRUE, type = .Platform$pkgType), ".github/depends.Rds", version = 2) | ||
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version") | ||
shell: Rscript {0} | ||
|
||
- name: Restore R package cache | ||
if: runner.os != 'Windows' | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.R_LIBS_USER }} | ||
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }} | ||
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1- | ||
|
||
- name: Configure Git identity | ||
if: github.event_name == 'push' | ||
run: | | ||
env | sort | ||
git config --local user.name "$GITHUB_ACTOR" | ||
git config --local user.email "[email protected]" | ||
shell: bash | ||
|
||
- name: Install system dependencies | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt-get update | ||
while read -r cmd | ||
do | ||
eval sudo $cmd | ||
done < <(Rscript -e 'req <- remotes::system_requirements("ubuntu", "18.04"); if (length(req) > 0) cat(req, sep = "\n")') | ||
- name: Install pkgdown sysdeps | ||
- name: Add fake qpdf and checkbashisms | ||
if: runner.os == 'Linux' | ||
env: | ||
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc | ||
run: | | ||
# For some reason harfbuzz and gert are installed from source and needs this | ||
sudo apt-get install -y libharfbuzz-dev libfribidi-dev libgit2-dev | ||
sudo ln -s $(which true) /usr/local/bin/qpdf | ||
sudo ln -s $(which true) /usr/local/bin/checkbashisms | ||
- name: Install dependencies | ||
run: | | ||
|
@@ -105,9 +115,6 @@ jobs: | |
# Begin custom: install | ||
# End custom: install | ||
|
||
- name: Install package | ||
run: R CMD INSTALL . --with-keep.source --with-keep.parse.data | ||
|
||
- name: Session info | ||
run: | | ||
options(width = 100) | ||
|
@@ -119,6 +126,9 @@ jobs: | |
# Begin custom: after install | ||
# End custom: after install | ||
|
||
- name: Install package | ||
run: R CMD INSTALL . --with-keep.source --with-keep.parse.data | ||
|
||
- name: Deploy package | ||
if: github.event_name == 'push' | ||
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