mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
Allow multiple gradles to run on the same box
/cache is shared among multiple runners that can potentiall run at once, but gradle's cache is retarded and just completely blocks anything from using the cache for the span of the entire build. Work around it by sticking the unique builder identifier in the cache path.
This commit is contained in:
parent
c2689ee7e6
commit
6c176330a4
|
@ -80,7 +80,7 @@ local apk_builder(name, image, extra_cmds=[], allow_fail=false) = {
|
|||
"rm -f local.properties",
|
||||
"echo 'sdk.dir=/usr/lib/android-sdk' >> local.properties",
|
||||
"echo 'ndk.dir=/usr/lib/android-ndk' >> local.properties",
|
||||
"GRADLE_USER_HOME=/cache/gradle gradle --no-daemon assembleDebug",
|
||||
"GRADLE_USER_HOME=/cache/gradle/${DRONE_STAGE_MACHINE} gradle --no-daemon assembleDebug",
|
||||
] + extra_cmds
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue