Skip to content

Commit 57dfb2d

Browse files
authored
Remove AAR existence check and upload jobs
Removed jobs for checking AAR existence and uploading AAR to AWS S3.
1 parent 3ee23cb commit 57dfb2d

File tree

1 file changed

+0
-48
lines changed

1 file changed

+0
-48
lines changed

.github/workflows/android-release-artifacts.yml

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,6 @@ concurrency:
2525
cancel-in-progress: true
2626

2727
jobs:
28-
check-if-aar-exists:
29-
name: check-if-aar-exists
30-
runs-on: ubuntu-22.04
31-
timeout-minutes: 10
32-
steps:
33-
- name: Check if this RC version is already in S3
34-
shell: bash
35-
run: |
36-
VERSION="${{ inputs.version }}"
37-
if [ -z "$VERSION" ]; then
38-
echo "No version name specified. Will create a snapshot AAR"
39-
exit 0
40-
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"
43-
echo "Will skip build/upload"
44-
exit 1
45-
fi
46-
4728
build-aar:
4829
name: build-aar
4930
needs: check-if-aar-exists
@@ -121,32 +102,3 @@ jobs:
121102
if [[ "$UPLOAD_TO_MAVEN" == "true" ]]; then
122103
(cd extension/android; ANDROID_HOME="${ANDROID_SDK:-/opt/android/sdk}" ./gradlew ${GRADLE_ARGS} :executorch_android:publishToMavenCentral)
123104
fi
124-
125-
upload-release-aar:
126-
name: upload-release-aar
127-
needs: build-aar
128-
runs-on: ubuntu-22.04
129-
timeout-minutes: 10
130-
permissions:
131-
id-token: write
132-
contents: read
133-
steps:
134-
- name: configure aws credentials
135-
uses: aws-actions/[email protected]
136-
with:
137-
role-to-assume: arn:aws:iam::308535385114:role/gha_executorch_upload-frameworks-android
138-
aws-region: us-east-1
139-
- name: Upload AAR RC to AWS S3
140-
shell: bash
141-
run: |
142-
wget https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/executorch.aar
143-
shasum -a 256 executorch.aar > executorch.aar.sha256sums
144-
145-
pip install awscli==1.32.18
146-
AWS_CMD="aws s3 cp"
147-
VERSION="${{ inputs.version }}"
148-
if [ -z "$VERSION" ]; then
149-
VERSION="snapshot-$(date +"%Y%m%d")"
150-
fi
151-
${AWS_CMD} executorch.aar s3://ossci-android/executorch/release/${VERSION}/executorch.aar --acl public-read
152-
${AWS_CMD} executorch.aar.sha256sums s3://ossci-android/executorch/release/${VERSION}/executorch.aar.sha256sums --acl public-read

0 commit comments

Comments
 (0)