Skip to content

Conversation

@rnro
Copy link
Contributor

@rnro rnro commented Oct 22, 2025

Motivation:

Android SDKs now exist and testing is good.

Modifications:

Add an Android GitHub Actions workflow using the latest nightly image
and enable it in NIO targetting NIOCore (matching WASM testing).

Result:

More reusable workflows and more test coverage for NIO

See this in action here (the CI job works but NIOCore fails to build): https://github.com/apple/swift-nio/actions/runs/18718487605/job/53384086329?pr=3418

rnro added 2 commits October 22, 2025 14:51
Motivation:

Android SDKs now exist and testing is good.

Modifications:

Add an Android GitHub Actions workflow using the latest nightly image
and enable it in NIO targetting NIOCore (matching WASM testing).

Result:

More reusable workflows and more test coverage for NIO
@rnro rnro changed the title Android sdk Android SDK Workflow Oct 22, 2025
@rnro rnro added the semver/none No version bump required. label Oct 22, 2025
@rnro rnro requested a review from glbrntt October 22, 2025 13:58
This reverts commit 5d41e08.
@rnro rnro marked this pull request as ready for review October 22, 2025 13:59
@glbrntt glbrntt merged commit 412a870 into main Oct 22, 2025
1 check passed
@glbrntt glbrntt deleted the android-sdk branch October 22, 2025 14:00
@marcprux
Copy link
Contributor

See this in action here (the CI job works but NIOCore fails to build)

The Swift SDK for Android needs an extra post-install step before it can be used. I've submitted #3424 that should get this passing.

rnro pushed a commit that referenced this pull request Oct 30, 2025
…re the SDK (#3424)

Fixes the Android CI workflow

### Motivation:

The recently-added Android SDK workflow
[fails](https://github.com/apple/swift-nio/actions/runs/18718487605/job/53384086329?pr=3418)
(as mentioned at
#3418 (comment)). The
confusing error message is due to a post-install step that is needed to
download and link the Android NDK into the Swift SDK's artifactbundle.

This PR also adds a one-line fix to
[Sources/NIOPerformanceTester/main.swift](main...swift-android-sdk:swift-nio:main#diff-de179adbbfacb89c9533f4efd21f7f641eedc0c8642d7d650cdfc9d9278a7a55)
that gets it building for Android so the entire swift-nio package can be
built.

### Modifications:

Adds a post-install step to the SDK installation that is needed for the
Swift SDK for Android. This is the same technique used by
swiftlang/github-workflows#172, and is described
as a necessary step in the [Android getting started
guide](https://github.com/swiftlang/swift-org-website/blob/0dc655ce267e7b6bada2a2032cc7855c3b5e19d9/documentation/articles/swift-android-getting-started.md)

### Result:

The "Android Swift SDK" CI check should now pass successfully. See an
example at
https://github.com/swift-android-sdk/swift-nio/actions/runs/18761057590/job/53525442382

### Note:

This PR will _not_ pass the Android check until it has been merged,
because it relies on being able to down the the script
https://raw.githubusercontent.com/apple/swift-nio/main/scripts/install_swift_sdk.sh
from `apple/swift-nio/main`, which will not include the Android fix
until the PR is merged. But once it is merged, the Android SDK CI should
start passing.
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.

4 participants