Skip to content

Commit

Permalink
build-driver: delete grml_sources in results directory
Browse files Browse the repository at this point in the history
Avoids exploding the CI artifact zip size, and thus failing builds.
  • Loading branch information
zeha committed Dec 19, 2024
1 parent 5871571 commit b1a8886
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build-driver/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,12 @@ def main(program_name: str, argv: list[str]) -> int:
if old_sources_path:
old_sources_path.rename(build_dir / job_properties.sources_name)

# Remove the sources *directory*, to not have the sources twice in the CI artifacts.
grml_sources_directory = build_dir / "grml_sources"
if grml_sources_directory.exists():
print(f"I: Removing {grml_sources_directory}")
shutil.rmtree(grml_sources_directory, ignore_errors=True)

print("I: Success.")

return 0
Expand Down

0 comments on commit b1a8886

Please sign in to comment.