Skip to content

Commit 6f0c596

Browse files
committed
fix
1 parent 2714984 commit 6f0c596

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

build-bin.sh

+7
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,11 @@ python build-version.py
4040

4141
./pyinstaller.sh $gpu-$arch $opts
4242

43+
if [ "$gpu" == "cuda-torch" ]; then
44+
pushd dist
45+
tar cvf - gputopia-worker-$gpu-$arch/ | pigz -9 - > gputopia-worker-$gpu-$arch.tar.gz
46+
rm -rf gputopia-worker-$gpu-$arch/
47+
popd
48+
fi
49+
4350
deactivate

upload.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ fi
77

88
pushd dist
99
for f in gputopia-worker-*; do
10-
aws s3 cp $f s3://gputopia/bin/ --acl public-read
10+
if [ -f "$f" ]; then
11+
aws s3 cp $f s3://gputopia/bin/ --acl public-read
12+
else
13+
aws s3 sync $f s3://gputopia/bin/$f --acl public-read
14+
fi
1115
done
1216
popd

0 commit comments

Comments
 (0)