remove source dir after successful build in CI environment

This commit is contained in:
henderkes 2025-12-18 09:58:45 +01:00
parent 9fdfef5057
commit 656a58c3fa

View File

@ -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;
}