I have a Xamarin build workflow and I try to cache bin and obj directories for both Android and iOS projects. Unfortunately, while trying to build Android project I encounter the error stating that some directories in obj folder are missing. These directories are empty after build but are required by msbuild tasks for some reason.
I verified this situation by downloading the cache archive and checking through files. Screenshot shows some of the differences between actual build output (bottom) and cached files (top). Directories like
1 contain empty folders.
Is there any way to cache all the directories even if they’re empty? Now it takes more than 30 min to build Android and iOS projects and with cache enabled, I presume, it would take less than 15.
This is my cache:push step:
finish: steps: - email@example.com: inputs: - cache_paths: |- src/Project.Droid/bin/ src/Project.iOS/bin/ src/Project.Core/bin/ src/Project.Droid/obj/ src/Project.iOS/obj/ src/Project.Core/obj/ $HOME/.local/share/Xamarin/ $HOME/.nuget/packages/