From 2e4602f5cd59f57d1d5f7e92a55a867f5568ab89 Mon Sep 17 00:00:00 2001 From: Dima Krasner Date: Tue, 3 Oct 2023 08:17:49 +0300 Subject: [PATCH] free more space --- kernel-kit/build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel-kit/build.sh b/kernel-kit/build.sh index b54c8bd3d24..e5313effdc5 100755 --- a/kernel-kit/build.sh +++ b/kernel-kit/build.sh @@ -1001,9 +1001,12 @@ if [ "$CREATE_SOURCES_SFS" != "no" ]; then ln -s ../../../usr/src/${KBUILD_DIR} ${KBUILD_DIR}/lib/modules/${kernel_version}${custom_suffix}/build ln -s ../../../usr/src/${KBUILD_DIR} ${KBUILD_DIR}/lib/modules/${kernel_version}${custom_suffix}/source fi + [ -n "$GITHUB_ACTIONS" ] && rm -rf ${KERNEL_SOURCES_DIR} mksquashfs ${KBUILD_DIR} output/${KBUILD_DIR}.sfs $COMP md5sum output/${KBUILD_DIR}.sfs > output/${KBUILD_DIR}.sfs.md5.txt sha256sum output/${KBUILD_DIR}.sfs > output/${KBUILD_DIR}.sfs.sha256.txt + elif [ -n "$GITHUB_ACTIONS" ]; then + rm -rf ${KERNEL_SOURCES_DIR} fi fi