Skip to content

Add Android Build & CI support - #1082

Closed
Nexushunter wants to merge 1 commit into
OpenSwiftUIProject:mainfrom
Nexushunter:android-sdk-foundation
Closed

Nexushunter wants to merge 1 commit into
OpenSwiftUIProject:mainfrom
Nexushunter:android-sdk-foundation

Conversation

@Nexushunter

Copy link
Copy Markdown

Tracking issue

Closes #594

Versions

Pin Current Target
Compute binary
Compute source
  • Upstream release or revision:

Summary

Issue 594 is looking to add the Android platform support within CI.

Behavior and compatibility changes

Adds Swift SDK for Android CI workflow

Change checklist

  • Update the Compute binary and source versions in mise.compute.toml.
  • Update the fallback revision in Scripts/CI/compute_setup.sh.
  • Update Compute versions pinned directly by CI workflows.
  • Regenerate Example/Tuist/Package.resolved.
  • Update documentation that names the current Compute versions or known limitations.

Validation

  • Resolve and generate the Example project with Example/setup.sh --compute.
  • Build the affected Compute-backed OpenSwiftUI targets or XCFramework slices.
  • Run the swiftui-renderer-iag UI test configuration on the affected platforms.
  • Run the openswiftui-renderer-iag UI test configuration on the affected platforms.
  • Review newly passing, failing, skipped, or expected-failure IAG snapshots.

Validation evidence

Comment on lines +48 to +49
- name: Build artifacts
run: swift build --swift-sdk x86_64-unknown-linux-android28 --static-swift-stdlib No newline at end of file

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Artifact storage is still up for a decision but this gets the foundation.

@@ -0,0 +1,49 @@
name: Swift SDK for Android
on:
workflow_call:

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I configured this so that the release pipeline could use it if needed.

Comment on lines +25 to +30
OPENSWIFTUI_WERROR: 0 # Disable it to avoid enable OAG's werror and hit conflicts
OPENSWIFTUI_OPENATTRIBUTESHIMS_ATTRIBUTEGRAPH: 0
OPENSWIFTUI_COMPATIBILITY_TEST: 0
OPENSWIFTUI_SWIFT_LOG: 1
OPENSWIFTUI_SWIFT_CRYPTO: 1
OPENSWIFTUI_LINK_TESTING: 1

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This is copy pasta; they seem important but can be cleaned up as needed!

fail-fast: false
matrix:
swift_version: ["6.3.3"]
runs-on: ubuntu-22.04

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Opted for Ubuntu as linux runners are cheap than macos.

@Kyle-Ye Kyle-Ye left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

  1. Why do you use the bump-iag PR template?
  2. The Android build has some blockers. Do you solve them? Please confirm a local build & test pass.

@Kyle-Ye Kyle-Ye closed this Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Android Build and CI support

2 participants