Skip to content

Commit

Permalink
Move Gradle clean to post-debug/pre-release
Browse files Browse the repository at this point in the history
- Avoid poisoned cache for release variant only
- Preserve hosted agent free disk space
- Fix: java.io.IOException: No space left on device #639
  • Loading branch information
leotm committed Jun 3, 2022
1 parent 634076f commit b9b5f03
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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/[email protected]
with:
arguments: assembleDebug
arguments: clean
build-root-directory: android

- name: Build application Release APK with Gradle
Expand Down

0 comments on commit b9b5f03

Please sign in to comment.