-
Notifications
You must be signed in to change notification settings - Fork 205
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
Intermediate build results (phase A and B) #3093
Comments
If I understand correctly, I think you could handle this by selecting
|
This does mean that |
If it would be possible to use the cached results on the MacOS machine in Phase B that would be even better in our setup. But when I try to run tool-D on MacOS with the build using tool-C dependencies it would have different hash key because of different build config like the OS variable. So it become unusable. I would rather keep it as one chain. Because actually we have Phase C too where results are combined again with dependencies from Phase A and B. |
I'm a little confused so forgive me if I've misunderstood. If you need to build a tool on linux and then use it on a macos box, then if you're using something like github actions you could do the following: Set up a config option for the tool. This can be done in your .plzconfig like so:
and then use this in your build rules like so:
Then you can:
|
That is a great way indeed. I had not thought of that. Currently I use rules that uses the
Then I use an additional rule in tool-A and tool-B that uses that output path as a source. But one thing that I was not able to do is to use the data that is already in cache. I need to copy it over in the workspace either way. |
I am closing this issue now as I got enough input to make things work. |
I am trying setup a structure that allows use to do the following.
Phase A build
tool-A
,tool-B
andtool-C
. This creates an output ontool-C
.Phase B should build
tool-D
and use the output ofbuild-C
but it should not check the whole dependency tree for changes.Context
The reason for this is that I have one part being build on a Linux box (Phase A) and then I want to use that result on a MacOS box (Phase B) to build additional output.
It would be great if this could be done 'natively'. But from my understanding till now I can only have it work if I copy the artifact over to the new machine and use it as an 'src' from the repo. This feels incorrect.
Am I missing something or is this not possible?
The text was updated successfully, but these errors were encountered: