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: push:
branches: branches:
- main - main
- pipeline-test
jobs: jobs:
Build: Build:
@ -18,12 +19,17 @@ jobs:
distribution: 'temurin' distribution: 'temurin'
- name: Set up Android SDK - name: Set up Android SDK
uses: android-actions/setup-android@v3 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 - name: Grant execute permission for gradlew
run: chmod +x gradlew run: chmod +x gradlew
- name: Build with Gradle - name: Build with Gradle
uses: gradle/gradle-build-action@v2 run: ./gradlew --no-daemon assembleDebug
with:
arguments: assembleDebug
- name: Upload .apk Artifact - name: Upload .apk Artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:

View File

@ -21,3 +21,5 @@ kotlin.code.style=official
# resources declared in the library itself and none from the library's dependencies, # resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library # 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