Closed Mostafa-wael closed 2 years ago
Hi. Could you please briefly share what problems you found?
Hi. Could you please briefly share what problems you found?
I mean, please provide a minimal reproducible example about this problem, otherwise other people may not be able to get your point.
I know that there is no cache in the first time but, this problem arises in the third run of the GitHub actions. The problem was fixed after setting the path and the key, I mean a global fix, not specific for my code or machine.
I just ran into the same issue, this seems to be the problem
Hi @Mostafa-wael and @AnotherFoxGuy , I think you may need to switch to actions/cache@
v1
.
See also https://github.com/jurplel/install-qt-action/issues/51#issuecomment-778594660 .
I fixed it by using the following setup:
- name: Cache Qt
id: cache-qt
uses: actions/cache@v2.1.6
with:
path: "${{ github.workspace }}/qt/"
key: ${{ runner.os }}-QtCache
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
cached: ${{ steps.cache-qt.outputs.cache-hit }}
dir: "${{ github.workspace }}/qt/"
I fixed it by using the following setup:
uses: actions/cache@v2.1.6 with: path: "${{ github.workspace }}/qt/"
@AnotherFoxGuy Yes, it works because you are now using an absolute path.
I have tried the attached code in the readme file for the cache but it failed, saying that no cache is found. I managed to find a solution to the problem and I am willing to add it in a pull request.