I’ve set up a flutter build and all is working fine for both iOS and Android. I was hoping to make the build a bit faster by leveraging caching. However, my attempts so far have just slowed things down. That’s because despite caching, the steps I was hoping would be faster (such as installing flutter) are still the same. That is, they’re not using the cache to avoid the need to re-install.
Is there any guidance on setting up flutter with Bitrise in such a way as to avoid the ~3 mins required to simply install flutter on every build?
For the record, I tried caching these paths:
However, that was far too expensive (~4GB) and was recreating the cache every time due to irrelevant file changes. I also tried toning it right down to just:
The cache was still approaching 1GB and it would have been faster, except flutter still insisted on running a full install. My install script for flutter is:
- script: title: Install flutter inputs: - content: |- #!/usr/bin/env bash # fail if any commands fails set -e # debug log set -x cd .. git clone -b alpha https://github.com/flutter/flutter.git export PATH=`pwd`/flutter/bin:$PATH brew install --HEAD libimobiledevice brew install ideviceinstaller brew install ios-deploy flutter doctor