From 0f2f05ba8eb88d178ed1e8a1a588b3419e58cd51 Mon Sep 17 00:00:00 2001 From: "Taro L. Saito" Date: Tue, 23 May 2023 14:40:43 -0700 Subject: [PATCH] Add --no-cache for CI --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 3825bd4d..f9c190ac 100644 --- a/Makefile +++ b/Makefile @@ -165,7 +165,12 @@ $(TARGET)/$(snappy-jar-version).jar: test: $(NATIVE_DLL) $(SBT) test +ifdef CI +# Do not cache docker images in CI to avoid no space left error +DOCKER_RUN_OPTS:=--rm --no-cache +else DOCKER_RUN_OPTS:=--rm +endif win32: jni-header ./docker/dockcross-windows-x86 -a $(DOCKER_RUN_OPTS) bash -c 'make clean-native snappy-header native CROSS_PREFIX=i686-w64-mingw32.static- OS_NAME=Windows OS_ARCH=x86 SNAPPY_CMAKE_OPTS="-DHAVE_SYS_UIO_H=0"'