Hello! Has anyone tried to do CI/CD with kotlin mu...
# ios
m
Hello! Has anyone tried to do CI/CD with kotlin mutliplatform on iOS? I would love to explore some options (if there are any 😅)
p
What exactly do you need 🙂 ?
There is a multitude of ways you can go around this depending on how you build your shared module 🙂
In the project I work on we have Jenkins based CI/CD with conditional build stages where we check the recent changes and decide what should be rebuilt based on the diff. For example: if you have changed only the iOS native code or UI and haven’t modified anything in the common then running tests on the common module does not make sense etc.
m
I would like to have a pipeline that will build my kotlin multiplatform app on iOS. Something like Jenkins, preferably hosted in cloud. I have an Apple Developer account so I have access to the Apple Cloud. Also I was thinking about spinning up Jenkins on my mac but I am afraid that it would render it unusable for development 🤔
I am also concerned about costs because last time I've checked the macOS machines on AWS were 0.80$/min so it would be quite expensive to have that running all the time 😅
p
In most cases the majority of the things you do to build an app is being run by gradle. You can run gradle commands from fastlane if it will be more familiar to you. The KMM project differs only in the fact that you need to build the shared code first.
I am also concerned about costs because last time I’ve checked the macOS machines on AWS were 0.80$/min so it would be quite expensive to have that running all the time
I am not sure if you can go around having a mac machine doing the building. Unfortunately you can only build an iOS app on a mac machine or virtual machine.
Do you want to build it every merge and have a full CD pipeline?
m
Yes that would be a goal but if it is not possible/too expensive the simple release builds would do
Do You happen to know if one can install gradle on the Apple Cloud thing that is bundled with an Apple Developer subscription?
p
Do You happen to know if one can install gradle on the Apple Cloud thing that is bundled with an Apple Developer subscription?
I haven’t used that but I think XCode Cloud is meant for typical iOS builds so I would guess : no
m
ok I will take a look on github actions then. Thanks a lot 🙌
m
v
Huh. Did bitrise change their plans? I believe it was X money per Coin (aka minutes). Which was a big deal for us coz we do multiple branded apps (flavors). And now as I can see the price is fixed and it is only a matter of team size/concurrency/else.
I am also researching for the new cicd for our KMP project, we are currently on AppCenter which is officially dead now. Any recommendations for the Azure Pipelines perhaps?
237 Views