Skip to content

Commit ed7b5da

Browse files
authored
Build updates (RedisJSON#922)
1 parent 5f701d0 commit ed7b5da

File tree

6 files changed

+25
-6
lines changed

6 files changed

+25
-6
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ jobs:
377377

378378
build-macos:
379379
macos:
380-
xcode: 11.7.0
380+
xcode: 12.5.1
381381
resource_class: macos.x86.medium.gen2
382382
parameters:
383383
upload:

sbin/get-redisearch

+2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ else
7171
else
7272
nick="rhel7"
7373
fi
74+
elif [[ $OSNICK == bigsur ]]; then
75+
nick=catalina
7476
else
7577
nick="$($READIES/bin/platform --osnick)"
7678
fi

sbin/pack.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,11 @@ OSNICK=$($READIES/bin/platform --osnick)
5959
[[ $OSNICK == jammy ]] && OSNICK=ubuntu22.04
6060
[[ $OSNICK == centos7 ]] && OSNICK=rhel7
6161
[[ $OSNICK == centos8 ]] && OSNICK=rhel8
62+
[[ $OSNICK == ol8 ]] && OSNICK=rhel8
6263
[[ $OSNICK == rocky8 ]] && OSNICK=rhel8
6364

65+
[[ $OSNICK == bigsur ]] && OSNICK=catalina
66+
6467
#----------------------------------------------------------------------------------------------
6568

6669
if [[ -z $MODULE || ! -f $MODULE ]]; then
@@ -159,7 +162,7 @@ pack_deps() {
159162
sha256sum $tar_path | awk '{print $1}' > $tar_path.sha256
160163

161164
cd $ARTDIR/snapshots
162-
if [[ ! -z $BRANCH ]]; then
165+
if [[ -n $BRANCH ]]; then
163166
local snap_dep=$stem.${BRANCH}${VARIANT}.tgz
164167
ln -sf ../$fq_dep $snap_dep
165168
ln -sf ../$fq_dep.sha256 $snap_dep.sha256

sbin/setup

+12
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,16 @@ READIES=$ROOT/deps/readies
99
export HOMEBREW_NO_AUTO_UPDATE=1
1010

1111
$READIES/bin/getpy3
12+
pyenv="$(get_profile_d)/pyenv.sh"
13+
if [[ -f $pyenv ]]; then
14+
. $pyenv
15+
fi
16+
if [[ $VERBOSE == 1 ]]; then
17+
python3 --version
18+
python3 -m pip list
19+
fi
20+
1221
$ROOT/sbin/system-setup.py
22+
if [[ $VERBOSE == 1 ]]; then
23+
python3 -m pip list
24+
fi

sbin/upload-artifacts

+5-3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ OS=$($READIES/bin/platform --os)
4949
[[ $OSNICK == ol8 ]] && OSNICK=rhel8
5050
[[ $OSNICK == rocky8 ]] && OSNICK=rhel8
5151

52+
[[ $OSNICK == bigsur ]] && OSNICK=catalina
53+
5254
PLATFORM="$OS-$OSNICK-$ARCH"
5355

5456
#----------------------------------------------------------------------------------------------
@@ -103,8 +105,8 @@ s3_ls() {
103105
}
104106

105107
s3_upload() {
106-
local prod_subdir="$1"
107-
local prefix="$2"
108+
local prod_subdir="$PROD"
109+
local prefix="$PREFIX"
108110
local upload_dir="${S3_URL}/${prod_subdir}${MAYBE_SNAP}"
109111
local file
110112
if [[ $SNAPSHOT == 1 ]]; then
@@ -129,4 +131,4 @@ if [[ $NOP != 1 ]]; then
129131
fi
130132
fi
131133

132-
s3_upload rejson-oss rejson-oss
134+
PROD=rejson-oss PREFIX=rejson-oss s3_upload

0 commit comments

Comments
 (0)