From 37f604c821217fc56b2229ccdfd6821ec57d8bdb Mon Sep 17 00:00:00 2001 From: henderkes Date: Thu, 18 Dec 2025 09:58:45 +0100 Subject: [PATCH] remove source dir after successful build in CI environment --- src/SPC/builder/LibraryBase.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SPC/builder/LibraryBase.php b/src/SPC/builder/LibraryBase.php index c88e8d96..0018868f 100644 --- a/src/SPC/builder/LibraryBase.php +++ b/src/SPC/builder/LibraryBase.php @@ -195,6 +195,9 @@ abstract class LibraryBase $this->getBuilder()->emitPatchPoint('before-library[ ' . static::NAME . ']-build'); $this->build(); $this->installLicense(); + if (getenv('CI')) { + FileSystem::removeDir($this->source_dir); + } $this->getBuilder()->emitPatchPoint('after-library[ ' . static::NAME . ']-build'); return LIB_STATUS_OK; }