Uh oh!
There was an error while loading. Please reload this page.
Fix native builds on GitHub Actions using Bazel cache - #240
Conversation
karllessard
commented
Mar 12, 2021
Thanks @Craigacp , merging, let see how it goes with the deployment |
karllessard
commented
Mar 12, 2021
rnett
commented
Mar 12, 2021
This broke local builds with |
karllessard
commented
Mar 12, 2021
It's issued by the Maven plugin executing that script. Normally, you shouldn't run |
Yeah, I get that error when running |
karllessard
commented
Mar 13, 2021
Mmh, maybe the plugin don't expose the environment variable if it's empty? Possible, since it always has a value in the CI. Anyway I'm done building the artifacts of 0.3.0, which is not impacted by this other that users might have trouble if they want to rebuild 0.3.0 by their own... mmmh... ok I'll take a look this weekend, I might do a fix and rebuild everything again, I haven't published the artifacts so its fine, thanks |
This PR fixes most of the issues we are facing when building/releasing on GitHub Actions. Important updates are:
Bazel cache will reuse the same compiled binaries (at the file level) that were built in a previous workflow if the whole native tree (TF) is detected as being unchanged (it basically hashes the content of the files + its configuration). Multiple runs might be required after modifying the TF source tree since it can still take over 6 hours in some cases, but on the second run the build will restart from where it left.
After the cache is setup, a full build on Linux with GPU will take about 25 minutes instead of 6 hours. See this run