@@ -10,6 +10,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
# ---------------- CHECKOUT ----------------
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -31,20 +32,34 @@ jobs:
|
|||||||
java-version: 17
|
java-version: 17
|
||||||
cache: gradle
|
cache: gradle
|
||||||
|
|
||||||
# ---------------- ANDROID ----------------
|
# ---------------- ANDROID SDK ----------------
|
||||||
- name: Setup Android SDK
|
- name: Setup Android SDK
|
||||||
uses: android-actions/setup-android@v3
|
uses: android-actions/setup-android@v3
|
||||||
|
|
||||||
|
# ---------------- PERMISSION ----------------
|
||||||
- name: Grant permission
|
- name: Grant permission
|
||||||
run: chmod +x android/gradlew
|
run: chmod +x android/gradlew
|
||||||
|
|
||||||
# ---------------- BUILD APK ----------------
|
# ---------------- STABLE GRADLE CONFIG ----------------
|
||||||
- name: Build Release APK
|
- name: Set Gradle Stability Fix
|
||||||
|
run: |
|
||||||
|
echo "org.gradle.daemon=false" >> android/gradle.properties
|
||||||
|
echo "org.gradle.parallel=false" >> android/gradle.properties
|
||||||
|
echo "org.gradle.caching=true" >> android/gradle.properties
|
||||||
|
echo "systemProp.https.protocols=TLSv1.2,TLSv1.3" >> android/gradle.properties
|
||||||
|
|
||||||
|
# ---------------- BUILD APK (STABLE FIXED) ----------------
|
||||||
|
- name: Build APK (Stable)
|
||||||
run: |
|
run: |
|
||||||
cd android
|
cd android
|
||||||
./gradlew assembleRelease --stacktrace --info
|
./gradlew clean
|
||||||
|
./gradlew assembleRelease \
|
||||||
|
--refresh-dependencies \
|
||||||
|
--no-daemon \
|
||||||
|
--stacktrace \
|
||||||
|
--info
|
||||||
|
|
||||||
# ---------------- VERIFY APK ----------------
|
# ---------------- VERIFY ----------------
|
||||||
- name: Check APK Output
|
- name: Check APK Output
|
||||||
run: ls -R android/app/build/outputs/apk
|
run: ls -R android/app/build/outputs/apk
|
||||||
|
|
||||||
@@ -54,7 +69,7 @@ jobs:
|
|||||||
mkdir -p /home/pgadmin1/builds
|
mkdir -p /home/pgadmin1/builds
|
||||||
cp android/app/build/outputs/apk/release/app-release.apk /home/pgadmin1/builds/app-release.apk
|
cp android/app/build/outputs/apk/release/app-release.apk /home/pgadmin1/builds/app-release.apk
|
||||||
|
|
||||||
# ---------------- UPLOAD ARTIFACT ----------------
|
# ---------------- ARTIFACT ----------------
|
||||||
- name: Upload APK
|
- name: Upload APK
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user