Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
junjihashimoto committed May 17, 2019
1 parent 739a3af commit 71cea27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion download-binary.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#!/usr/bin/env bash


#USE_NIGHTLY="nightly/"
USE_NIGHTLY=""

for arch in "shared-with-deps-latest" "macos-latest" "win-shared-with-deps-latest" ; do
for cuda in cpu cu80 cu90 cu100 ; do
if [ $arch = "macos-latest" ] && [ $cuda = "cu90" -o $cuda = "cu100" -o $cuda = "cu80" ]; then
echo "skip ${cuda} of ${arch}";
else
wget -O ${cuda}-libtorch-${arch}.zip https://download.pytorch.org/libtorch/nightly/${cuda}/libtorch-${arch}.zip;
wget -O ${cuda}-libtorch-${arch}.zip https://download.pytorch.org/libtorch/${USE_NIGHTLY}${cuda}/libtorch-${arch}.zip;
fi
done
done
Expand Down
1 change: 1 addition & 0 deletions upload-binary.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
VERSION=`cat libtorch/build-version`
github-release release -u hasktorch -r libtorch-binary-for-ci -t $VERSION
for i in *.zip ; do
echo $i;
github-release upload -u hasktorch -r libtorch-binary-for-ci -t $VERSION -R -n $i -f $i ;
Expand Down

0 comments on commit 71cea27

Please sign in to comment.