Skip to content

Commit d03b508

Browse files
authored
Delete cloned projects once these are not needed anymore to free up d… (#795)
…iskspace Motivation: We started to see build failures as we ran out of diskspace when using docker. Modifications: Delete cloned projects after we are done with compilation Don't recursive checkout quiche Clone single branch only Result: Builds need less disk-space
1 parent 7273679 commit d03b508

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

codec-native-quic/pom.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,7 @@
659659
<arg value="clone" />
660660
<arg value="--branch" />
661661
<arg value="${boringsslBranch}" />
662+
<arg value="--single-branch" />
662663
<arg value="${boringsslRepository}" />
663664
<arg value="${boringsslSourceDir}" />
664665
</exec>
@@ -731,6 +732,9 @@
731732
<copy todir="${boringsslHomeIncludeDir}" verbose="true">
732733
<fileset dir="${boringsslSourceDir}/include" />
733734
</copy>
735+
736+
<!-- Delete boringssl source directory after build to free up space -->
737+
<delete dir="${boringsslSourceDir}"/>
734738
</else>
735739
</if>
736740
</target>
@@ -765,9 +769,9 @@
765769

766770
<exec executable="git" failonerror="true" dir="${project.build.directory}" resolveexecutable="true">
767771
<arg value="clone" />
768-
<arg value="--recursive" />
769772
<arg value="--branch" />
770773
<arg value="${quicheBranch}" />
774+
<arg value="--single-branch" />
771775
<arg value="${quicheRepository}" />
772776
<arg value="${quicheSourceDir}" />
773777
</exec>
@@ -851,6 +855,9 @@
851855
<copy todir="${quicheHomeIncludeDir}">
852856
<fileset dir="${quicheSourceDir}/quiche/include" />
853857
</copy>
858+
859+
<!-- Delete quiche source directory after build to free up space -->
860+
<delete dir="${quicheSourceDir}"/>
854861
</else>
855862
</if>
856863
</target>

0 commit comments

Comments
 (0)