From b2379bfa5b23ef59e00308ab304a47e00e9bb485 Mon Sep 17 00:00:00 2001 From: Winston Chang Date: Sat, 19 Dec 2020 13:41:06 -0600 Subject: [PATCH] Cache packages on Windows --- .github/workflows/R-CMD-check.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index a5a93fcd9..3fcf89f05 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -57,7 +57,6 @@ jobs: shell: Rscript {0} - name: Cache R packages - if: runner.os != 'Windows' uses: actions/cache@v1 with: path: ${{ env.R_LIBS_USER }} @@ -119,6 +118,14 @@ jobs: name: ${{ runner.os }}-r${{ matrix.config.r }}-results path: check + - name: Fix path for Windows caching + if: runner.os == 'Windows' + # This is needed because if you use the default tar at this stage, + # C:/Rtools/bin/tar.exe, it will say that it can't find gzip.exe. So + # we'll just set the path so that the original tar that would be + # found, will be found. + run: echo "C:/Program Files/Git/usr/bin" >> $GITHUB_PATH + documentation: runs-on: ${{ matrix.config.os }}