-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with Global Caching using actions/cache on Windows #285
Comments
Global cache is used for builds within Windows containers. |
That might be a mingw / cygwin path, but certainly not a win32 path for |
~/.cargo/bin/ and ~/bin/ninja.exe still cannot cache the global cache.
|
The paths inside the container might be confusing, but I have no problem cacheing absolute win32 paths (mingw, cygwin or msys, wsl paths won't work). The So
For windows containers only posix
In pure windows is Cacheing BTW there is no GitHub Action spec for Windows Containers, they are basically non existent. If you would create windows container docker actions they would only work here. Add that secret ACTIONS_STEP_DEBUG=true, this will help to you to find the problems. |
Thanks to @ChristopherHX for the detailed answer. |
Currently tested |
I would like to ask a question. I found that
However, I found that there is no error indicating that there is no If so, how to proceed? |
Issue ### Description:
There is an issue with global caching using
actions/cache
on Windows operating systems. Currently, caching is limited to specific paths within the project, and attempts to cache global paths such as/c/github/home/
or~/.cargo/bin/
are unsuccessful.In practice, GitHub Actions does support caching global paths. However, when using
ChristopherHX/gitea-action-runner
in conjunction withChristopherHX/runner.server
, caching is currently restricted to paths within the project.Specifically, in the example below, only the src/gn/ path is cached. Global paths like
/c/github/home/.cargo/bin/
,/c/github/home/bin/ninja.exe
,~/.cargo/bin/
,~/bin/ninja.exe
, and similar paths are not cached as expected.Expected ### Behavior:
The expectation is that on Windows operating systems, global paths should be supported for caching. This means that paths like
/c/github/home/
and~/.cargo/bin/
should be successfully cached, not limited to paths within the project.The text was updated successfully, but these errors were encountered: