Skip to content

Commit

Permalink
update tic templates (#502)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
pat-s and github-actions[bot] authored Nov 16, 2020
1 parent 8e6722c commit ff2c507
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/main.yml
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:
Expand Down Expand Up @@ -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 }}
Expand All @@ -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:
Expand All @@ -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}}
Expand All @@ -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()"
Expand All @@ -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
Expand Down

0 comments on commit ff2c507

Please sign in to comment.