buildkite / templates

Buildkite pipeline templates
https://buildkite.com/pipelines/templates
MIT License
2 stars 1 forks source link

CI for Fastlane + Android #43

Open olyism opened 7 months ago

olyism commented 5 months ago

Here's a related comment from @sj26

Hi folks! Do we have an example pipeline for building an android app? Even better, do we have something for building a library for android? I want some example pipelines I can rig up that build and push packages from within pipelines.

I'm unsure if Fastlane is the right workflow tool for this. Leaving a note here to investigate later.

sj26 commented 5 months ago

Fastlane is a nice value-add for Android builds, as part of the continuous delivery story. But there should probably be an example using Gradle directly as well. Getting a Gradle build environment configured well, with good caching, needs to be done before Fastlane becomes useful, imho.

Here's an example that I recently added into Packagecloud, to exercise gradle push and pull from a private repository:

https://github.com/computology/packagecloud.io/tree/main/spec/fixtures/gradle/test-app

and a system test:

https://github.com/computology/packagecloud.io/blob/main/spec/system/gradle_client_spec.rb

I'd like to wrap this up into a Buildkite pipeline and get it pushing the build artifacts to the private repo using Buildkite OIDC tokens, too.

olyism commented 5 months ago

Hi @sj26 I've created a separate issue https://github.com/buildkite/templates/issues/58 to focus on the use cases you mentioned

Thanks for the inspirations :)