You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CACHE 1.3KB

123456789101112131415161718192021222324252627
  1. Gitian includes two caches where build-assets may be saved for use with
  2. subsequent builds. These caches are only enabled if the "enable_cache" key
  3. is enabled in the build descriptor.
  4. Common cache:
  5. All descriptors share this cache. It can be useful for storing fetched sources,
  6. sharing build assets between descriptors, etc.
  7. Per-descriptor cache
  8. Files installed to this cache can only be seen by this descriptor. Use this to
  9. store assets created as part of the build process, to avoid having to rebuild
  10. them in future builds.
  11. If caching is enabled, GBUILD_CACHE_ENABLED will be set to 1 in the build
  12. script. In addition, GBUILD_PACKAGE_CACHE and GBUILD_COMMON_CACHE will be set
  13. to their respective paths. GBUILD_PACKAGE_CACHE contains the descriptor's
  14. "name" key as a means of separating caches. To add or update the cached files,
  15. copy them to these paths.
  16. Before each build, all files and folders in the cache directories will be
  17. transferred to the VM. After each successful build, the caches will be
  18. transferred back to the builder (overwriting existing files as necessary).
  19. It is entirely up to the user and the descriptors to verify that cached files
  20. are actually suitable for re-use. Overwriting existing cached files is _highly_
  21. discouraged, as that would likely lead to non-deterministic results. Unique
  22. filenames should always be used.