Skip to content

Commit

Permalink
Add --no-cache for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
xerial committed May 23, 2023
1 parent 186c791 commit 0f2f05b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Expand Up @@ -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"'
Expand Down

0 comments on commit 0f2f05b

Please sign in to comment.