forked from upstream-mirrors/quik
Add robust retry logic for Gradle downloads
This commit is contained in:
@@ -31,10 +31,18 @@ jobs:
|
|||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
|
|
||||||
- name: Build Debug APK
|
- name: Build Debug APK
|
||||||
run: ./gradlew assembleDebug
|
run: |
|
||||||
|
for i in 1 2 3; do
|
||||||
|
./gradlew assembleDebug && exit 0 || { echo "Attempt $i failed, retrying in 30s..."; sleep 30; }
|
||||||
|
done
|
||||||
|
exit 1
|
||||||
|
|
||||||
- name: Build Release APK
|
- name: Build Release APK
|
||||||
run: ./gradlew assembleRelease
|
run: |
|
||||||
|
for i in 1 2 3; do
|
||||||
|
./gradlew assembleRelease && exit 0 || { echo "Attempt $i failed, retrying in 30s..."; sleep 30; }
|
||||||
|
done
|
||||||
|
exit 1
|
||||||
|
|
||||||
- name: Upload Debug APK Artifact
|
- name: Upload Debug APK Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user