Kotlin library and automated builds

I have a kotlin library and i want to use it in both android and ios app. What is the process for building using an automated build process, like for example using appCenter. What do i need to do to make the automated build process happen