Check out the tensorflow package in Spack. We patch Bazel slightly to allow external dependencies/library paths, and the dependencies are factored out into their own packages:
https://spack.readthedocs.io/en/latest/package_list.html#py-...
Spack can build with two levels of parallelism (within a build and among builds) on a single node or multiple nodes with a shared filesystem:
https://spack.readthedocs.io/en/latest/packaging_guide.html#...
You can also generate GitLab pipelines of your build, which will break the jobs out as well: