Setup
- Put the
Cache:Pullstep after theGit Cloneand before theNuGet restorestep and of course theXamarin Archivestep. - Put the
Cache:Pushstep to the very end of the Workflow - Select the
Cache:Pushstep 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.
