-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More efficient R-CMD-CHECK workflow
- Loading branch information
Showing
1 changed file
with
9 additions
and
3 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 |
---|---|---|
|
@@ -5,6 +5,7 @@ on: [push, pull_request] | |
jobs: | ||
check: | ||
runs-on: ${{ matrix.config.os }} | ||
timeout-minutes: 660 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -30,10 +31,18 @@ jobs: | |
key: ${{ runner.os }}-texlive-${{ hashFiles('**/DESCRIPTION') }} | ||
restore-keys: ${{ runner.os }}-texlive- | ||
|
||
- name: Cache R | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
${{ runner.tool_cache }}/R | ||
key: ${{ runner.os }}-R-${{ matrix.config.r }} | ||
|
||
- name: Set up R | ||
uses: r-lib/actions/[email protected] | ||
with: | ||
r-version: ${{ matrix.config.r }} | ||
continue-on-error: true | ||
|
||
- name: Install Linux system dependencies | ||
if: runner.os == 'Linux' | ||
|
@@ -54,7 +63,6 @@ jobs: | |
echo "C:\Program Files\MiKTeX\miktex\bin\x64" | Out-File -Append -FilePath $Env:GITHUB_PATH | ||
& "C:\Program Files\MiKTeX\miktex\bin\x64\initexmf.exe" --update-fndb | ||
- name: Install macOS system dependencies | ||
if: runner.os == 'macOS' | ||
run: | | ||
|
@@ -67,7 +75,6 @@ jobs: | |
# Install recommended fonts, including Helvetica | ||
sudo /Library/TeX/texbin/tlmgr install collection-fontsrecommended | ||
- name: Install rJava and other R dependencies | ||
run: | | ||
Rscript -e "install.packages('rJava')" | ||
|
@@ -77,4 +84,3 @@ jobs: | |
- name: Check | ||
shell: bash | ||
run: R CMD build . && R CMD check *tar.gz --as-cran | ||
|