Adding modules to Android project is slowing build times

Hi, we recently refactored our android project and went from 1 to 13 modules and turned on parallel Gradle builds. This made our local builds a little bit faster but out Bitrise build went from 5 min to 60 min. Is there anything we are missing or what can we do about it? Since we are planning to continue in this trend and speed up our local builds by creating more and more modules it seems that Bitrise will be unusable for us very soon.
This is one of our simple workflows:
(all the time is taken by android-build and android-lint steps)

---

  primary-release:
    steps:
    - activate-ssh-key@4.0.3:
        run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
    - git-clone@4.0.14: {}
    - cache-pull@2.0.1: {}
    - install-missing-android-tools@2.3.5:
        inputs:
        - gradlew_path: "$PROJECT_LOCATION/gradlew"
    - android-build@0.10.0:
        inputs:
        - project_location: "$PROJECT_LOCATION"
        - variant: "$RELEASE_VARIANT"
        - cache_level: all
        - module: "$MODULE"
    - android-lint@0.9.6:
        inputs:
        - variant: "$RELEASE_VARIANT"
        - project_location: "$PROJECT_LOCATION"
    - android-unit-test:
        inputs:
        - variant: "$RELEASE_VARIANT"
        - module: "$MODULE"
    - deploy-to-bitrise-io@1.4.2: {}
    - cache-push@2.2.0: {}

This is quite critical for us, so we will be very thankful for any help.

Hi @semanticer!

Sorry for the huge delay. Could you please also include an example build URL of what goes down?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.