Skip to content

Commit

Permalink
Fix symlinks and timeout on macOS
Browse files Browse the repository at this point in the history
* Symlinks to the installed R and Rscript are not established on older R versions with the updated macOS-latest runner, see r-lib/actions#412.
* `setup-r` is often stuck forever and runs until the default 6h timeout.
  • Loading branch information
riccardoporreca committed Nov 7, 2021
1 parent 3a07928 commit c5d9978
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,20 @@ jobs:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v1
# this gets often stuck (esp. on macOS) for the default 6h timeout
timeout-minutes: 5
with:
r-version: ${{ matrix.config.r }}

- name: Ensure symlinks to the installed R and Rscript on macOS
# work around https://github.com/r-lib/actions/issues/412
if: runner.os == 'macOS'
run: |
sudo ln -sf $R_HOME/bin/R /usr/local/bin
sudo ln -sf $R_HOME/bin/Rscript /usr/local/bin
env:
R_HOME: /Library/Frameworks/R.framework/Resources

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

- name: Query dependencies
Expand Down

0 comments on commit c5d9978

Please sign in to comment.