Commit d198698 1 parent d3b2b55 commit d198698 Copy full SHA for d198698
File tree 3 files changed +11
-6
lines changed
3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,13 @@ name: Native JNI S3 PyTorch Android
2
2
3
3
on :
4
4
workflow_dispatch :
5
+ schedule :
6
+ - cron : ' 0 6 * * *'
5
7
6
8
jobs :
7
9
build-pytorch-jni-android :
8
10
runs-on : ubuntu-18.04
9
11
env :
10
- PYTORCH_VERSION : " 1.12.1"
11
12
NDK_VERSION : " 21.1.6352462"
12
13
13
14
steps :
27
28
- name : build android
28
29
run : |
29
30
export ANDROID_NDK=${ANDROID_SDK_ROOT}/ndk/${NDK_VERSION}
31
+ PYTORCH_VERSION=${PYTORCH_VERSION:-$(cat gradle.properties | awk -F '=' '/pytorch_version/ {print $2}')}
30
32
./gradlew :engines:pytorch:pytorch-native:compileAndroidJNI -Ppt_version=${PYTORCH_VERSION}
31
33
- name : Configure AWS Credentials
32
34
uses : aws-actions/configure-aws-credentials@v1
36
38
aws-region : us-east-2
37
39
- name : Copy files to S3 with the AWS CLI
38
40
run : |
41
+ PYTORCH_VERSION=${PYTORCH_VERSION:-$(cat gradle.properties | awk -F '=' '/pytorch_version/ {print $2}')}
39
42
aws s3 sync engines/pytorch/pytorch-native/jnilib s3://djl-ai/publish/pytorch/${PYTORCH_VERSION}/jnilib
40
43
aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/pytorch/${PYTORCH_VERSION}/jnilib*"
Original file line number Diff line number Diff line change 49
49
run : |
50
50
aws s3 cp android_pytorch_tmp/build_android/${{ matrix.format }}_native.zip s3://djl-ai/publish/pytorch/${PYTORCH_VERSION}/android_native/
51
51
aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/pytorch/${PYTORCH_VERSION}/android_native*"
52
- - name : Upload pytorch src
53
- uses : actions/upload-artifact@v3
54
- with :
55
- name : pytorch-src-${{ matrix.format }}
56
- path : android_pytorch_tmp
52
+ # - name: Upload pytorch src
53
+ # uses: actions/upload-artifact@v3
54
+ # with:
55
+ # name: pytorch-src-${{ matrix.format }}
56
+ # path: android_pytorch_tmp
Original file line number Diff line number Diff line change 1
1
name : Publish Android packages
2
2
3
3
on :
4
+ schedule :
5
+ - cron : ' 0 9 * * *'
4
6
workflow_dispatch :
5
7
inputs :
6
8
mode :
You can’t perform that action at this time.
0 commit comments