-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
8e6722c
commit ff2c507
Showing
1 changed file
with
14 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
## tic GitHub Actions template: linux-macos-windows-deploy | ||
## revision date: 2020-08-06 | ||
## revision date: 2020-11-14 | ||
on: | ||
workflow_dispatch: | ||
push: | ||
|
@@ -28,6 +28,8 @@ jobs: | |
- { os: ubuntu-latest, r: "release" } | ||
|
||
env: | ||
# [Custom env var] fake virtual display for rgl package | ||
DISPLAY: ":99" | ||
# otherwise remotes::fun() errors cause the build to fail. Example: Unavailability of binaries | ||
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | ||
CRAN: ${{ matrix.config.cran }} | ||
|
@@ -42,11 +44,9 @@ jobs: | |
SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk | ||
# use GITHUB_TOKEN from GitHub to workaround rate limits in {remotes} | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
# [Custom env var] fake virtual display for rgl package | ||
DISPLAY: ":99" | ||
|
||
steps: | ||
- uses: actions/[email protected].1 | ||
- uses: actions/[email protected].4 | ||
|
||
- uses: r-lib/actions/setup-r@master | ||
with: | ||
|
@@ -72,7 +72,7 @@ jobs: | |
|
||
- name: "[Cache] Cache R packages" | ||
if: runner.os != 'Windows' | ||
uses: pat-s/[email protected].0 | ||
uses: pat-s/[email protected].3 | ||
with: | ||
path: ${{ env.R_LIBS_USER }} | ||
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{steps.date.outputs.date}} | ||
|
@@ -93,6 +93,14 @@ jobs: | |
run: | | ||
brew cask install xquartz | ||
- name: "[Stage] [macOS] Install system libs for pkgdown" | ||
if: runner.os == 'macOS' && matrix.config.pkgdown != '' | ||
run: brew install harfbuzz fribidi | ||
|
||
- name: "[Stage] [Linux] Install system libs for pkgdown" | ||
if: runner.os == 'Linux' && matrix.config.pkgdown != '' | ||
run: sudo apt install libharfbuzz-dev libfribidi-dev | ||
|
||
- name: "[Stage] Install" | ||
if: matrix.config.os != 'macOS-latest' || matrix.config.r != 'devel' | ||
run: Rscript -e "remotes::install_github('ropensci/tic')" -e "print(tic::dsl_load())" -e "tic::prepare_all_stages()" -e "tic::before_install()" -e "tic::install()" | ||
|
@@ -113,7 +121,7 @@ jobs: | |
|
||
- name: "[Stage] Upload R CMD check artifacts" | ||
if: failure() | ||
uses: actions/upload-artifact@v2.1.1 | ||
uses: actions/upload-artifact@v2.2.1 | ||
with: | ||
name: ${{ runner.os }}-r${{ matrix.config.r }}-results | ||
path: check | ||
|