When evaluating a Kotlin Multiplatform solution, it was very important to our team that we understand how we could build a CI/CD pipeline for the project. It needed to be easy for our team to push changes and build a new version of the project. By Nate Ebel, Android Engineer.
Both our iOS and Android applications use GitHub Actions for our CI needs. So, in this post, we’ll walkthrough how to setup a GitHub Actions workflow for building a Kotlin Multiplatform Mobile project.
The article covers:
- Creating a GitHub actions workflow for Kotlin Multiplatform Mobile
- Setting up our workflow environment
- Configuring a job to build a Kotlin Multiplatform Mobile Project
- Checking out Kotlin Multiplatform and Swift package repos
- Setting up Java and Xcode tooling
- Extracting project version for Git tagging
- Building the artifacts
- Publishing the JVM artifacts
- Reviewing a PR workflow solution
… and more.
These workflows have worked well for us in the past 1.5 years. Authors publishing model for their Swift Package is evolving, but the workflow itself has worked great. Nice one!
[Read More]