Skip to content

Commit

Permalink
output build_dir to artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerivec committed Nov 5, 2024
1 parent 2faf0fd commit 267c683
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tools/build_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,14 @@ def main():
)
)

args.output_dir.mkdir(exist_ok=True)

shutil.copytree(
args.build_dir,
args.output_dir,
dirs_exist_ok=True,
)

# Remove absolute paths from the build for reproducibility
extra_compiler_flags = [
f"-ffile-prefix-map={str(src.absolute())}={dst}"
Expand Down Expand Up @@ -662,7 +670,7 @@ def main():
# {**value_template_env, **extracted_gbl_metadata},
# )

args.output_dir.mkdir(exist_ok=True)
# args.output_dir.mkdir(exist_ok=True)

# Copy the output artifacts
for extension, output_path in args.outputs:
Expand Down

0 comments on commit 267c683

Please sign in to comment.