Skip to content

[CI] Build with the Android SDK and run the tests in the Android x86_64 emulator#140

Merged
czechboy0 merged 2 commits intoapple:mainfrom
finagolfin:droid
Jan 17, 2026
Merged

[CI] Build with the Android SDK and run the tests in the Android x86_64 emulator#140
czechboy0 merged 2 commits intoapple:mainfrom
finagolfin:droid

Conversation

@finagolfin
Copy link
Copy Markdown
Contributor

Modifications

Enabled CI using the official swiftlang workflow for the Android SDK snapshots

Result

Make sure Android keeps building and working, resolves #113.

Test Plan

Will check this PR's result

@czechboy0
Copy link
Copy Markdown
Contributor

Thanks @finagolfin - I kicked off the CI. Please also add the same job to the Main workflow.

@czechboy0 czechboy0 added the semver/none No version bump required. label Jan 11, 2026
@finagolfin
Copy link
Copy Markdown
Contributor Author

finagolfin commented Jan 11, 2026

I wanted to make sure the PR workflow worked well first before adding it to the main branch workflow, will do that next.

@finagolfin finagolfin force-pushed the droid branch 2 times, most recently from a8703d8 to 2a5e7cf Compare January 11, 2026 19:08
@finagolfin
Copy link
Copy Markdown
Contributor Author

I went back to only adding Android SDK testing in this pull, but we are seeing flakes 30-40% of the time with this new Android emulator testing workflow, so no problem with waiting to merge this while Marc tinkers with the workflow in swiftlang/github-workflows#223.

@finagolfin
Copy link
Copy Markdown
Contributor Author

Another workflow pull added a small sleep period, can you run the tests again?

czechboy0 added a commit that referenced this pull request Jan 12, 2026
### Motivation

Previously, due to overriding the commands to `--product Configuration`
we weren't actually building with the Musl SDK.

### Modifications

Correctly repeat the Musl SDK triple as well as the extra argument,
`--swift-sdk x86_64-swift-linux-musl --product Configuration`.

### Result

CI will correctly run for Musl now.

Credit to @finagolfin for
[finding](#140 (comment))
this.

### Test Plan

PR CI.
…64 emulator

   ### Modifications

   Enabled CI using the official swiftlang workflow for the Android SDK snapshots

   ### Result

   Make sure Android keeps building and working, resolves apple#113.

   ### Test Plan

   Will check this PR's result
@finagolfin
Copy link
Copy Markdown
Contributor Author

@marcprux pushed a possible Android workflow fix, please run this CI again.

@marcprux
Copy link
Copy Markdown

It looks like we'll need to wait for swiftlang/github-workflows#223 (comment) to be merged before the emulator launch fix can be tested.

@finagolfin
Copy link
Copy Markdown
Contributor Author

Alright, Justice merged the polling fix, ready for another CI run.

@finagolfin
Copy link
Copy Markdown
Contributor Author

New CI all passed, ready for review.

Copy link
Copy Markdown
Contributor

@czechboy0 czechboy0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thank you @finagolfin! 🙏

@czechboy0 czechboy0 merged commit f16db3a into apple:main Jan 17, 2026
35 checks passed
@czechboy0
Copy link
Copy Markdown
Contributor

@finagolfin Actually, would you be interested in opening one more PR that updates the supported platforms in the README.md and in Sources/Configuration/Documentation.docc/Documentation.md, reflecting the Android support and which NDK versions?

@finagolfin
Copy link
Copy Markdown
Contributor Author

Sure, I'll take a look. 👍

@finagolfin finagolfin deleted the droid branch January 17, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Android CI

3 participants