diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index d0594b5..ac4c3df 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -4,6 +4,7 @@ on: push: branches: - main + - pipeline-test jobs: Build: @@ -12,7 +13,7 @@ jobs: - name: Checkout the repo uses: actions/checkout@v4 - name: Set up JDK 23 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '23' distribution: 'temurin' @@ -20,6 +21,13 @@ jobs: uses: android-actions/setup-android@v3 - name: Grant execute permission for gradlew run: chmod +x gradlew + - name: Cache Gradle packages + uses: actions/cache@v3 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} - name: Build with Gradle uses: gradle/gradle-build-action@v2 with: diff --git a/gradle.properties b/gradle.properties index 20e2a01..0ebaa7d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 \ No newline at end of file +android.nonTransitiveRClass=true +org.gradle.caching=true +org.gradle.parallel=true \ No newline at end of file