diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 57684c059..5e5bcee8b 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -66,17 +66,18 @@ jobs: cd cmake-3.23.1-linux-x86_64 ./bin/cmake --version - # Avoid poisoned cache problems - - name: Delete Android build pre-computed outputs + - name: Build application Debug APK with Gradle uses: gradle/gradle-build-action@v2.1.6 with: - arguments: clean + arguments: assembleDebug build-root-directory: android - - name: Build application Debug APK with Gradle + # Avoid release poisoned cache problems + # Preserve hosted agent free disk space + - name: Delete Android build pre-computed outputs uses: gradle/gradle-build-action@v2.1.6 with: - arguments: assembleDebug + arguments: clean build-root-directory: android - name: Build application Release APK with Gradle