Skip to content

Commit 161fe39

Browse files
authored
Merge pull request #655 from RedisAI/ck-1.2-cherries
cherry-pick master CI changes
2 parents 35a65f8 + a79e8cb commit 161fe39

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ jobs:
359359
echo "... done."
360360
du -ah --apparent-size *
361361
cd snapshots
362-
for f in *.tgz; do
362+
for f in `ls *.zip *.tgz`; do
363363
aws s3 cp --no-progress $f s3://redismodules/$PACKAGE_NAME/snapshots/ --acl public-read
364364
done
365365
@@ -376,7 +376,7 @@ jobs:
376376
command: |
377377
cd workspace/artifacts
378378
du -ah --apparent-size *
379-
for f in *.tgz; do
379+
for f in `ls *.zip *.tgz`; do
380380
aws s3 cp --no-progress $f s3://redismodules/$PACKAGE_NAME/ --acl public-read
381381
done
382382

opt/Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ make build # compile and link
3636
PROFILE=1 # enable profiling compile flags (and debug symbols) for release type.
3737
# You can consider this as build type release with debug symbols and -fno-omit-frame-pointer
3838
VARIANT=name # build variant `name`
39-
WHY=1 # explain CMake decisions (into /tmp/cmake.why)
39+
WHY=1 # explain CMake decisions (into /tmp/cmake.why)
4040
make clean # remove build artifacts
4141
ALL=1 # remove entire artifacts directory
4242
make install # create ready-to-run scheme (module and engines)
@@ -79,7 +79,7 @@ device selection options (fetch, build, and test):
7979
JETSON=1 # build for Nvidia Jetson
8080
endef
8181

82-
#----------------------------------------------------------------------------------------------
82+
#----------------------------------------------------------------------------------------------
8383

8484
override GPU:=$(or $(findstring $(CUDA),1),$(findstring $(GPU),1))
8585

@@ -97,7 +97,7 @@ DEPS_FLAGS += CPU=1
9797
DEVICE=cpu
9898
endif
9999

100-
#----------------------------------------------------------------------------------------------
100+
#----------------------------------------------------------------------------------------------
101101

102102
SRCDIR=..
103103
BINDIR=$(BINROOT)/src
@@ -110,7 +110,7 @@ INSTALLED_TARGET=$(INSTALL_DIR)/redisai.so
110110

111111
BACKENDS_PATH ?= $(INSTALL_DIR)/backends
112112

113-
#----------------------------------------------------------------------------------------------
113+
#----------------------------------------------------------------------------------------------
114114

115115
CMAKE_FILES += \
116116
$(SRCDIR)/CMakeLists.txt \
@@ -165,7 +165,7 @@ include $(MK)/defs
165165

166166
include $(MK)/rules
167167

168-
#----------------------------------------------------------------------------------------------
168+
#----------------------------------------------------------------------------------------------
169169

170170
#prebuild:
171171
# $(SHOW)if [ ! -d $(DEPS_DIR) ]; then echo $$'Dependencies are not in place.\nPlease run \'make fetch\'.'; exit 1; fi
@@ -190,7 +190,7 @@ else
190190
-$(SHOW)$(MAKE) -C $(BINDIR) clean
191191
endif
192192

193-
#----------------------------------------------------------------------------------------------
193+
#----------------------------------------------------------------------------------------------
194194

195195
setup:
196196
@echo Setting up system...
@@ -222,9 +222,9 @@ endif
222222
pack: $(INSTALLED_TARGET)
223223
$(SHOW)find $(INSTALL_DIR) -name "*.so" -exec chmod +x {} \;
224224
$(SHOW)mkdir -p $(ROOT)/bin/artifacts
225-
$(SHOW)DEVICE=$(DEVICE) BINDIR=$(ROOT)/bin/artifacts INSTALL_DIR=$(INSTALL_DIR) BRANCH=$(BRANCH) DEPS=$(PACK_DEPS) ./pack.sh
226-
$(SHOW)DEVICE=$(DEVICE) BINDIR=$(ROOT)/bin/artifacts INSTALL_DIR=$(INSTALL_DIR) BRANCH=$(BRANCH) DEPS=$(PACK_DEPS) VARIANT=lite ./pack.sh
227-
$(SHOW)DEVICE=$(DEVICE) BINDIR=$(ROOT)/bin/artifacts INSTALL_DIR=$(INSTALL_DIR) BRANCH=$(BRANCH) DEPS=$(PACK_DEPS) VARIANT=rce ./pack.sh
225+
$(SHOW)DEVICE=$(DEVICE) BINDIR=$(ROOT)/bin/artifacts INSTALL_DIR=$(INSTALL_DIR) BRANCH=$(BRANCH) RAMP=1 DEPS=$(PACK_DEPS) ./pack.sh
226+
$(SHOW)DEVICE=$(DEVICE) BINDIR=$(ROOT)/bin/artifacts INSTALL_DIR=$(INSTALL_DIR) BRANCH=$(BRANCH) RAMP=1 DEPS=$(PACK_DEPS) VARIANT=lite ./pack.sh
227+
$(SHOW)DEVICE=$(DEVICE) BINDIR=$(ROOT)/bin/artifacts INSTALL_DIR=$(INSTALL_DIR) BRANCH=$(BRANCH) RAMP=1 DEPS=$(PACK_DEPS) VARIANT=rce ./pack.sh
228228

229229
#----------------------------------------------------------------------------------------------
230230

opt/pack.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fi
1414
if [[ $1 == --help || $1 == help ]]; then
1515
cat <<-END
1616
pack.sh [cpu|gpu] [--help|help]
17-
17+
1818
Argument variables:
1919
DEVICE=cpu|gpu CPU or GPU variants
2020
RAMP=1 Build RAMP file
@@ -81,7 +81,7 @@ pack_ramp() {
8181
local packdir=snapshots
8282
local s3base=snapshots/
8383
fi
84-
84+
8585
local fq_package=$stem.${verspec}.zip
8686

8787
[[ ! -d $BINDIR/$packdir ]] && mkdir -p $BINDIR/$packdir
@@ -104,7 +104,7 @@ pack_ramp() {
104104
if [[ -z $VARIANT ]]; then
105105
local rampfile=ramp.yml
106106
else
107-
local rampfile=ramp-${VARIANT}.yml
107+
local rampfile=ramp${VARIANT}.yml
108108
fi
109109

110110
python3 $READIES/xtx \
@@ -124,21 +124,21 @@ pack_ramp() {
124124

125125
pack_deps() {
126126
local depname="$1"
127-
127+
128128
cd $ROOT
129129

130130
local platform="$OS-$OSNICK-$ARCH"
131131
local stem=${PACKAGE_NAME}-${DEVICE}-${depname}.${platform}
132132
local fq_package=$stem.${SEMVER}${VARIANT}.tgz
133133
local tar_path=$BINDIR/$fq_package
134134
local backends_prefix_dir=""
135-
135+
136136
if [[ $depname == all ]]; then
137137
local backends_dir=.
138138
else
139139
local backends_dir=${PRODUCT}_$depname
140140
fi
141-
141+
142142
cd $INSTALL_DIR/backends
143143
{ find $backends_dir -name "*.so*" | \
144144
xargs tar -c --sort=name --owner=root:0 --group=root:0 --mtime='UTC 1970-01-01' --transform "s,^,$backends_prefix_dir," 2>> /tmp/pack.err | \

0 commit comments

Comments
 (0)