mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-28 17:38:27 +00:00
ci: Use gradle clean on gradle builds
This commit is contained in:
parent
e7d658747a
commit
1211a51d91
|
@ -391,8 +391,8 @@ android:outOfProcess:
|
||||||
- .gradlehome/caches
|
- .gradlehome/caches
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rm -rf build
|
|
||||||
- cp .gitlab-ci/local.properties .
|
- cp .gitlab-ci/local.properties .
|
||||||
|
- ./gradlew clean
|
||||||
- ./gradlew assembleOutOfProcessDebug
|
- ./gradlew assembleOutOfProcessDebug
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
|
@ -414,8 +414,8 @@ android:inProcess:
|
||||||
- .gradlehome/caches
|
- .gradlehome/caches
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rm -rf build
|
|
||||||
- cp .gitlab-ci/local.properties .
|
- cp .gitlab-ci/local.properties .
|
||||||
|
- ./gradlew clean
|
||||||
- ./gradlew assembleInProcessDebug
|
- ./gradlew assembleInProcessDebug
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
|
|
|
@ -158,11 +158,11 @@ reuse:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- rm -rf build
|
|
||||||
|
|
||||||
{#- regular or NDK cmake builds -#}
|
{#- regular or NDK cmake builds -#}
|
||||||
{%- if "cmake" in job.name or "ndk" in job.name %}
|
{%- if "cmake" in job.name or "ndk" in job.name %}
|
||||||
|
|
||||||
|
- rm -rf build
|
||||||
- cmake -GNinja -B build -S . {{- make_cmake_args(job.cmake_defines) }}
|
- cmake -GNinja -B build -S . {{- make_cmake_args(job.cmake_defines) }}
|
||||||
- echo "Build Options:"; grep "^XRT_" build/CMakeCache.txt
|
- echo "Build Options:"; grep "^XRT_" build/CMakeCache.txt
|
||||||
- ninja -C build
|
- ninja -C build
|
||||||
|
@ -171,6 +171,7 @@ reuse:
|
||||||
{%- elif "android" in job.name %}
|
{%- elif "android" in job.name %}
|
||||||
|
|
||||||
- cp .gitlab-ci/local.properties .
|
- cp .gitlab-ci/local.properties .
|
||||||
|
- ./gradlew clean
|
||||||
- ./gradlew {{ job.target }}
|
- ./gradlew {{ job.target }}
|
||||||
|
|
||||||
{%- else %}
|
{%- else %}
|
||||||
|
|
Loading…
Reference in a new issue