CI/CD time optimization attempt
All checks were successful
Gitea Android Builder / Build (push) Successful in 2m58s

This commit is contained in:
Andy Kolibri Vendetti 2025-03-04 22:37:45 +05:00
parent e6e9d7e082
commit b4beaf4f94
Signed by: andy
GPG Key ID: 2F866D87B28FC5BB
2 changed files with 12 additions and 4 deletions

View File

@ -4,6 +4,7 @@ on:
push:
branches:
- main
- pipeline-test
jobs:
Build:
@ -18,12 +19,17 @@ jobs:
distribution: 'temurin'
- name: Set up Android SDK
uses: android-actions/setup-android@v3
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: assembleDebug
run: ./gradlew --no-daemon assembleDebug
- name: Upload .apk Artifact
uses: actions/upload-artifact@v3
with:

View File

@ -20,4 +20,6 @@ kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.nonTransitiveRClass=true
org.gradle.caching=true
org.gradle.parallel=true