Skip to content

Commit

Permalink
ci: use setup-gradle action to provision gradle on CI
Browse files Browse the repository at this point in the history
This action has support for retrying on network failure and also
supports Github's Action toolcache.

Fixes servo#34600
  • Loading branch information
mukilan committed Dec 14, 2024
1 parent 53612da commit a0fc906
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ jobs:
id: setup-ndk
with:
ndk-version: r26c
- name: Install gradle
uses: gradle/actions/setup-gradle@v4
- name: Ensure gradle is downloaded
run: |
for i in {1..5}; do
./gradlew --version && break || { echo "Downloading gradle failed (attempt $i)." && sleep $((2 ** $i)); };
done
working-directory: ./support/android/apk/
- name: Setup Key Store for APK Signing
env:
KEYSTORE_BASE64: ${{ secrets.APK_KEYSTORE_BASE64 }}
Expand Down

0 comments on commit a0fc906

Please sign in to comment.