Setup
- Put the
Cache:Pull
step after theGit Clone
and before theNuGet restore
step and of course theXamarin Archive
step. - Put the
Cache:Push
step to the very end of the Workflow - Select the
Cache:Push
step and specify the following paths for caching (Cache paths input):
$HOME/.local/share/Xamarin
src/packages
src/Components
If your source is not in src
then you should specify the correct path, the path where you find the folders packages
and components
. components
is only if you use Xamarin Components
The $HOME/.local/share/Xamarin
will cache everything related to sources needed to build iOS, Android releated packages.
Example workflow
example:
steps:
- git-clone: {}
- cache-pull: {}
- xamarin-user-management: {}
- certificate-and-profile-installer: {}
- nuget-restore: {}
- xamarin-archive: {}
- cache-push:
inputs:
- cache_paths: |-
$BITRISE_CACHE_DIR
$HOME/.local/share/Xamarin
src/packages
src/Components
For more information about the Bitrise Build Cache see the DevCenter.