ci: replace Android SDK container with setup actions in CI workflow
Replace the cirruslabs/android-sdk container with individual setup actions for Java 17, Android SDK, and Gradle 8.8 to improve build flexibility and maintainability.
This commit is contained in:
@@ -44,10 +44,16 @@ jobs:
|
|||||||
|
|
||||||
android:
|
android:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: ghcr.io/cirruslabs/android-sdk:35
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
distribution: "temurin"
|
||||||
|
java-version: "17"
|
||||||
|
- uses: android-actions/setup-android@v3
|
||||||
|
- uses: gradle/actions/setup-gradle@v4
|
||||||
|
with:
|
||||||
|
gradle-version: "8.8"
|
||||||
- name: Prepare Firebase configuration
|
- name: Prepare Firebase configuration
|
||||||
if: "${{ secrets.GOOGLE_SERVICES_JSON_BASE64 != '' }}"
|
if: "${{ secrets.GOOGLE_SERVICES_JSON_BASE64 != '' }}"
|
||||||
run: echo "${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}" | base64 -d > android/app/google-services.json
|
run: echo "${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}" | base64 -d > android/app/google-services.json
|
||||||
|
|||||||
Reference in New Issue
Block a user