actions / cache

Cache dependencies and build outputs in GitHub Actions
MIT License
4.45k stars 1.18k forks source link

Cannot cache Bazel directory due to missing permission in Windows #1109

Closed sr229 closed 1 year ago

sr229 commented 1 year ago

Currently Bazel build caching is not possible in Windows runners due to lacking permissions. We currently use the Bazel build system to build our C++ projects but we're having a difficult time speeding up our Windows runners due to this bug.

image

You may examine our build logs here: https://github.com/vignetteapp/MediaPipe.NET.Runtime/actions/runs/4170125029

lvpx commented 1 year ago

👋 @sr229 from the workflow file in the above run, it seems there are places you are using an older cache version actions/cache@v2. I would first suggest moving to actions/cache@v3 and see if the problem persists.

sr229 commented 1 year ago

Looks like that fixed it, thanks for the help!