Closed alexbjorlig closed 2 years ago
Ping
ping?
I'm so sorry for not getting back to you - super busy with making Turborepo working on Github actions 😅 The example in the README.md shows an example with the artifacts running in the same github action job. My question was related to how this would look like, if the github actions contained multiple jobs - maybe even a matrix in some of the jobs.
But in the end we disabled remote artifacts with turborepo, and created an initial build step.
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v3
with:
path: .turbo
key: turbo-${{ github.ref_name }}-${{ github.sha }}
I'm not sure on how Github action with matrix works, but I guess that it opens a new runner, therefore, it won't share the same instance of local server. You can use this action in parts, so one step will "upload", the other will "use".
If I didn't understood your question properly, can you share a minimal Github Action config yaml that you want to run?
So my primary objective was to make sure that when I run a build step in multiple jobs, the turborepo cache will be used. And with the cache-step outlined above I achived that 😎 So I will just close the issue if it's ok with you :)
Hi, thank you for opening this issue. Can you elaborate what do you mean by "multi-job setup"? Can you add a small config example?