Merge pull request #1384 from NoRedInk/wat-cache-elm-home

cache ELM_HOME
This commit is contained in:
Brian Hicks 2023-05-03 10:06:58 -05:00 committed by GitHub
commit 0ed9380044
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,11 @@ def run_docs(args):
os.path.abspath(args.output),
]
logging.debug(f"running {command} in `{args.build_dir}`")
process = Popen(command, cwd=args.build_dir)
process = Popen(
command,
cwd=args.build_dir,
env={"ELM_HOME": os.path.join(args.build_dir, "elm_home")},
)
process.communicate()
return process.returncode
@ -202,7 +206,11 @@ def run_make(args):
command.append("--optimize")
logging.debug(f"running {command} in `{args.build_dir}`")
process = Popen(command, cwd=args.build_dir)
process = Popen(
command,
cwd=args.build_dir,
env={"ELM_HOME": os.path.join(args.build_dir, "elm_home")},
)
process.communicate()
return process.returncode