Skip to content

ci: add Android cross-compile job#1

Merged
odrobnik merged 3 commits intomainfrom
ci-android
May 1, 2026
Merged

ci: add Android cross-compile job#1
odrobnik merged 3 commits intomainfrom
ci-android

Conversation

@odrobnik
Copy link
Copy Markdown
Collaborator

@odrobnik odrobnik commented May 1, 2026

Summary

  • Adds a build-android job to .github/workflows/swift.yml that cross-compiles for aarch64 and x86_64 against android28 using the official Swift 6.3.1 Android SDK bundle.
  • Build-only — no on-device test run.

Test plan

  • CI: build-android (aarch64) succeeds
  • CI: build-android (x86_64) succeeds
  • All existing jobs (macOS / iOS / Linux / Windows) still green

🤖 Generated with Claude Code

odrobnik and others added 3 commits May 1, 2026 12:33
Cross-compiles for aarch64 and x86_64 against android28 using the
official Swift 6.3.1 Android SDK bundle. No on-device test run — the
build alone catches the usual Darwin-only / Foundation drift.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Replaces the hand-rolled swift sdk install + NDK download with the
skiptools/swift-android-action, which wraps the same SDK setup AND
runs the SwiftPM test suite on an x86_64 Android emulator. Drops the
container/matrix because the emulator step needs nested KVM on the
bare ubuntu-* runner image.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Mirrors the other platforms' pattern — invokes
skiptools/swift-android-action twice, once with run-tests:false to
build, and once with build-package:false / build-tests:false to run
the emulator tests. The second invocation hits the SDK/NDK/AVD caches
populated by the first.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@odrobnik odrobnik marked this pull request as ready for review May 1, 2026 12:19
@odrobnik odrobnik merged commit 9cf3d95 into main May 1, 2026
9 of 10 checks passed
@odrobnik odrobnik deleted the ci-android branch May 1, 2026 12:19
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 73c040faa9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +138 to +139
build-package: false
build-tests: false
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Remove flags that skip Android test execution

The Test (Android emulator) invocation sets build-package: false and build-tests: false, but this action only prepares and runs emulator tests when all three conditions are true (run-tests, build-tests, and build-package) in skiptools/swift-android-action’s action.yml (if: inputs.run-tests == 'true' && inputs.build-tests == 'true' && inputs.build-package == 'true' on the test-related steps). In this configuration, the step will not execute Android tests at all, so CI will report green without actually validating Android test behavior.

Useful? React with 👍 / 👎.

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.

1 participant