Skip to content

Use cache on Windows runners as well - #118

Closed
yutannihilation wants to merge 5 commits into
r-lib:masterfrom
yutannihilation:use-cache-windows
Closed

yutannihilation wants to merge 5 commits into
r-lib:masterfrom
yutannihilation:use-cache-windows

Conversation

@yutannihilation

Copy link
Copy Markdown
Contributor

The commit 5521fec says:

There is an issue with the tar shipped with Rtools that makes the cache
saving fail

It is fixed in Rtools 4.0, but that doesn't help us for now

I'm not sure about the details of the issue, but now that the released version got 4.0, maybe cache action can be used on Windows runners as well?

@jimhester

Copy link
Copy Markdown
Member

We are still testing using Rtools 35 for versions prior to R 4.0, so we cannot remove this until we are unconditionally using Rtools 4.0

@yutannihilation

Copy link
Copy Markdown
Contributor Author

Yes, but this example uses oonly the latest stable version for Windows, so I think it's OK to remove the condition. Do we need some comment for users who needs to check R < 4.0 on Windows?

@jimhester

Copy link
Copy Markdown
Member

https://github.com/r-lib/actions/pull/118/files#diff-e330848de576ee42616637088c4a86fdL52 changes this for the full check as well. But we could probably turn it on for the release one.

@yutannihilation

Copy link
Copy Markdown
Contributor Author

Ah, I see. At the time of writing this PR, the full check didn't contain the case of Windows + R 3.6, but now it is... I'll fix it later, thanks for catching!

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #118 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #118   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines            1         1           
=========================================
  Hits             1         1           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update df2ff65...9aa0c06. Read the comment docs.

@dpprdan dpprdan mentioned this pull request Nov 20, 2020
3 tasks done
@yutannihilation

Copy link
Copy Markdown
Contributor Author

@jimhester
Could you consider merging this after R 4.1 is released? I guess the reason why this pull request doesn't get merged is there's no nicer way to exclude the runners with R 3.x reliably, considering there's alias oldrel. But, after oldrel becomes to point to 4.0, it would be this simple:

if: ! (runner.os == 'Windows' && startsWith(matrix.config.r, '3'))

@yutannihilation
yutannihilation deleted the use-cache-windows branch May 25, 2021 12:34
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants