dev
sh 28 lines 679 Bytes
Raw
1 #!/bin/bash
2 set -x -e
3 cd "$(dirname "$0")"
4
5 # IMPORTANT: Make sure to update action 'Build Torch` in
6 # - .github/workflows/pr_test_build_android.yml
7 # - .github/workflows/pr_test_build_linux.yml
8 # https://github.com/MrCyjaneK/torch_dart/releases/download/v1.0.17/torch_dart-v1.0.17.tar.gz
9
10 HASH=a8601eaef00ac4a9465a0979b7d7a16df90bc364
11
12 if [[ ! -d "torch_dart/.git" ]];
13 then
14 rm -rf torch_dart
15 git clone https://github.com/mrcyjanek/torch_dart
16 cd torch_dart
17 else
18 cd torch_dart
19 git fetch -a
20 fi
21
22
23 git reset --hard
24 git checkout $HASH
25 git reset --hard
26
27 # recommended to uncomment during development
28 # sed -i.bak 's/go run . -cleanup/#go run . -cleanup/g' build.sh