lordgamez commented on pull request #1012:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1012#issuecomment-816602636


   > I have tested this in my fork. It works very well on a 2nd CI run in the 
same branch: https://github.com/fgerlits/nifi-minifi-cpp/actions/runs/729202774 
but it does not speed up a compile of the same code in a new branch: 
https://github.com/fgerlits/nifi-minifi-cpp/actions/runs/729538166. Is there a 
way to make the cache work across branches?
   
   Currently all cached builds try use 2 restore-keys for retrieving cache: the 
one for the current branch and the one for the main branch. It works the same 
way for the Windows builds. If a new branch is built and no cache is available 
for that yet, it will use the cache from the main branch. As the change is not 
yet submitted there is no available cache from the main branch that's why it is 
slow on the first compilation, but it should be available after the PR is 
merged.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to