1515 type : choice
1616 options :
1717 - " xnnpack"
18- - " vulkan+xnnpack "
18+ - " vulkan"
1919 - " qnn"
2020 schedule :
2121 - cron : 0 10 * * *
@@ -34,12 +34,13 @@ jobs:
3434 shell : bash
3535 run : |
3636 VERSION="${{ inputs.version }}"
37+ FLAVOR="${{ inputs.flavor }}"
3738 if [ -z "$VERSION" ]; then
3839 echo "No version name specified. Will create a snapshot AAR"
3940 exit 0
4041 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"
4344 echo "Will skip build/upload"
4445 exit 1
4546 fi
9394 fi
9495
9596 FLAVOR="${{ inputs.flavor }}"
96- if [[ "$FLAVOR" == "vulkan+xnnpack " || -z "$FLAVOR" ]]; then
97+ if [[ "$FLAVOR" == "vulkan" || -z "$FLAVOR" ]]; then
9798 curl -O https://sdk.lunarg.com/sdk/download/1.4.321.1/linux/vulkansdk-linux-x86_64-1.4.321.1.tar.xz
9899 tar xf vulkansdk-linux-x86_64-1.4.321.1.tar.xz -C /tmp
99100 export PATH="/tmp/1.4.321.1/x86_64/bin:$PATH"
@@ -148,8 +149,12 @@ jobs:
148149 pip install awscli==1.32.18
149150 AWS_CMD="aws s3 cp"
150151 VERSION="${{ inputs.version }}"
152+ FLAVOR="${{ inputs.flavor }}"
151153 if [ -z "$VERSION" ]; then
152154 VERSION="snapshot-$(date +"%Y%m%d")"
153155 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