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 * * *
@@ -34,12 +34,13 @@ jobs:
34
34
shell : bash
35
35
run : |
36
36
VERSION="${{ inputs.version }}"
37
+ FLAVOR="${{ inputs.flavor }}"
37
38
if [ -z "$VERSION" ]; then
38
39
echo "No version name specified. Will create a snapshot AAR"
39
40
exit 0
40
41
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"
42
+ if curl -I "https://ossci-android.s3.amazonaws.com/executorch/release/${VERSION}-${FLAVOR} /executorch.aar" | grep "200 OK"; then
43
+ echo "AAR already exists at https://ossci-android.s3.amazonaws.com/executorch/release/${VERSION}-${FLAVOR} /executorch.aar"
43
44
echo "Will skip build/upload"
44
45
exit 1
45
46
fi
93
94
fi
94
95
95
96
FLAVOR="${{ inputs.flavor }}"
96
- if [[ "$FLAVOR" == "vulkan+xnnpack " || -z "$FLAVOR" ]]; then
97
+ if [[ "$FLAVOR" == "vulkan" || -z "$FLAVOR" ]]; then
97
98
curl -O https://sdk.lunarg.com/sdk/download/1.4.321.1/linux/vulkansdk-linux-x86_64-1.4.321.1.tar.xz
98
99
tar xf vulkansdk-linux-x86_64-1.4.321.1.tar.xz -C /tmp
99
100
export PATH="/tmp/1.4.321.1/x86_64/bin:$PATH"
@@ -148,8 +149,12 @@ jobs:
148
149
pip install awscli==1.32.18
149
150
AWS_CMD="aws s3 cp"
150
151
VERSION="${{ inputs.version }}"
152
+ FLAVOR="${{ inputs.flavor }}"
151
153
if [ -z "$VERSION" ]; then
152
154
VERSION="snapshot-$(date +"%Y%m%d")"
153
155
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
156
+ if [ -z "$FLAVOR" ]; then
157
+ FLAVOR="xnnpack"
158
+ fi
159
+ ${AWS_CMD} executorch.aar s3://ossci-android/executorch/release/${VERSION}-${FLAVOR}/executorch.aar --acl public-read
160
+ ${AWS_CMD} executorch.aar.sha256sums s3://ossci-android/executorch/release/${VERSION}-${FLAVOR}/executorch.aar.sha256sums --acl public-read
0 commit comments