ci: Use gradle clean on gradle builds

This commit is contained in:
Jakob Bornecrantz 2022-06-14 16:26:17 +01:00
parent e7d658747a
commit 1211a51d91
2 changed files with 4 additions and 3 deletions

View file

@ -391,8 +391,8 @@ android:outOfProcess:
- .gradlehome/caches
script:
- rm -rf build
- cp .gitlab-ci/local.properties .
- ./gradlew clean
- ./gradlew assembleOutOfProcessDebug
artifacts:
paths:
@ -414,8 +414,8 @@ android:inProcess:
- .gradlehome/caches
script:
- rm -rf build
- cp .gitlab-ci/local.properties .
- ./gradlew clean
- ./gradlew assembleInProcessDebug
artifacts:
paths:

View file

@ -158,11 +158,11 @@ reuse:
{% endif %}
script:
- rm -rf build
{#- regular or NDK cmake builds -#}
{%- if "cmake" in job.name or "ndk" in job.name %}
- rm -rf build
- cmake -GNinja -B build -S . {{- make_cmake_args(job.cmake_defines) }}
- echo "Build Options:"; grep "^XRT_" build/CMakeCache.txt
- ninja -C build
@ -171,6 +171,7 @@ reuse:
{%- elif "android" in job.name %}
- cp .gitlab-ci/local.properties .
- ./gradlew clean
- ./gradlew {{ job.target }}
{%- else %}