15
15
type : choice
16
16
options :
17
17
- " xnnpack"
18
- - " vulkan+xnnpack "
18
+ - " vulkan"
19
19
- " qnn"
20
20
schedule :
21
21
- cron : 0 10 * * *
22
22
23
- concurrency :
24
- group : ${{ github.workflow }}-${{ github.ref }}
25
- cancel-in-progress : true
26
-
27
23
jobs :
28
24
check-if-aar-exists :
29
25
name : check-if-aar-exists
@@ -34,12 +30,13 @@ jobs:
34
30
shell : bash
35
31
run : |
36
32
VERSION="${{ inputs.version }}"
33
+ FLAVOR="${{ inputs.flavor }}"
37
34
if [ -z "$VERSION" ]; then
38
35
echo "No version name specified. Will create a snapshot AAR"
39
36
exit 0
40
37
fi
41
- if curl -I "https://ossci-android.s3.amazonaws.com/executorch/release/${VERSION}/executorch.aar" | grep "200 OK"; then
42
- echo "AAR already exists at https://ossci-android.s3.amazonaws.com/executorch/release/${VERSION}/executorch.aar"
38
+ if curl -I "https://ossci-android.s3.amazonaws.com/executorch/release/${VERSION}-${FLAVOR} /executorch.aar" | grep "200 OK"; then
39
+ echo "AAR already exists at https://ossci-android.s3.amazonaws.com/executorch/release/${VERSION}-${FLAVOR} /executorch.aar"
43
40
echo "Will skip build/upload"
44
41
exit 1
45
42
fi
93
90
fi
94
91
95
92
FLAVOR="${{ inputs.flavor }}"
96
- if [[ "$FLAVOR" == "vulkan+xnnpack " || -z "$FLAVOR" ]]; then
93
+ if [[ "$FLAVOR" == "vulkan" || -z "$FLAVOR" ]]; then
97
94
curl -O https://sdk.lunarg.com/sdk/download/1.4.321.1/linux/vulkansdk-linux-x86_64-1.4.321.1.tar.xz
98
95
tar xf vulkansdk-linux-x86_64-1.4.321.1.tar.xz -C /tmp
99
96
export PATH="/tmp/1.4.321.1/x86_64/bin:$PATH"
@@ -148,8 +145,12 @@ jobs:
148
145
pip install awscli==1.32.18
149
146
AWS_CMD="aws s3 cp"
150
147
VERSION="${{ inputs.version }}"
148
+ FLAVOR="${{ inputs.flavor }}"
151
149
if [ -z "$VERSION" ]; then
152
150
VERSION="snapshot-$(date +"%Y%m%d")"
153
151
fi
154
- ${AWS_CMD} executorch.aar s3://ossci-android/executorch/release/${VERSION}/executorch.aar --acl public-read
155
- ${AWS_CMD} executorch.aar.sha256sums s3://ossci-android/executorch/release/${VERSION}/executorch.aar.sha256sums --acl public-read
152
+ if [ -z "$FLAVOR" ]; then
153
+ FLAVOR="xnnpack"
154
+ fi
155
+ ${AWS_CMD} executorch.aar s3://ossci-android/executorch/release/${VERSION}-${FLAVOR}/executorch.aar --acl public-read
156
+ ${AWS_CMD} executorch.aar.sha256sums s3://ossci-android/executorch/release/${VERSION}-${FLAVOR}/executorch.aar.sha256sums --acl public-read
0 commit comments