workflow, osbuild-mpp: run with cache and use GH cache
Share cache between runs and also put into GH cache accross runs.
This commit is contained in:
parent
1ea7b4943c
commit
ba732b8532
2 changed files with 10 additions and 1 deletions
|
|
@ -1804,8 +1804,11 @@ def main():
|
|||
|
||||
m = ManifestFile.load(args.src, overrides, defaults, args.searchdirs)
|
||||
|
||||
cachedir = args.cachedir
|
||||
if cachedir is None:
|
||||
cachedir = os.getenv("OSBUILD_MPP_CACHEDIR")
|
||||
with tempfile.TemporaryDirectory() as persistdir:
|
||||
m.solver_factory = DepSolverFactory(args.cachedir, persistdir)
|
||||
m.solver_factory = DepSolverFactory(cachedir, persistdir)
|
||||
m.process_format()
|
||||
m.solver_factory = None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue