diff --git a/.github/workflows/r-cmd-check.yml b/.github/workflows/r-cmd-check.yml index dc1343b..cff1fbf 100644 --- a/.github/workflows/r-cmd-check.yml +++ b/.github/workflows/r-cmd-check.yml @@ -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/setup-r@v2.6.5 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 -