Skip to content

Commit 37f604c

Browse files
committed
remove source dir after successful build in CI environment
1 parent d064e13 commit 37f604c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SPC/builder/LibraryBase.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ public function tryBuild(bool $force_build = false): int
195195
$this->getBuilder()->emitPatchPoint('before-library[ ' . static::NAME . ']-build');
196196
$this->build();
197197
$this->installLicense();
198+
if (getenv('CI')) {
199+
FileSystem::removeDir($this->source_dir);
200+
}
198201
$this->getBuilder()->emitPatchPoint('after-library[ ' . static::NAME . ']-build');
199202
return LIB_STATUS_OK;
200203
}

0 commit comments

Comments
 (0)