Skip to content

Test the examples with Swift 6.4 on Ubuntu 26.04 - #56

Merged
finagolfin merged 3 commits into
swiftlang:mainfrom
niktishakov:ci-ubuntu-24.04
Nov 12, 2026
Merged

finagolfin merged 3 commits into
swiftlang:mainfrom
niktishakov:ci-ubuntu-24.04

Conversation

@niktishakov

@niktishakov niktishakov commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

CI has failed since ubuntu-latest moved to 26.04, which has no Swift 6.3 toolchains. This tests Swift 6.4 with NDK r30 on 26.04, links with --static-swift-stdlib, and builds the examples for API 23 (API 24 for native-activity and swift-java-weather-app). Fork run: https://github.com/niktishakov/swift-android-examples/actions/runs/42862952440

@niktishakov

niktishakov commented Nov 10, 2026 •

Copy link
Copy Markdown
Member Author

Not 26.04 like swiftlang/github-workflows#348, because there are no Swift 6.3 toolchains for 26.04.

Comment thread .github/workflows/ci.yml Resolved
@niktishakov niktishakov changed the title Run CI on Ubuntu 24.04 Test the examples with Swift 6.4 on Ubuntu 26.04 Nov 10, 2026
Comment thread hello-cpp-swift/swift-lib/build.gradle Resolved
Comment thread .github/workflows/ci.yml Resolved
@finagolfin

Copy link
Copy Markdown
Member

Great work on updating all this, Nik, 👍 will get it in once Marc signs off on his initial pull.

@finagolfin

Copy link
Copy Markdown
Member

Rebase and we can get this in

ubuntu-latest is now Ubuntu 26.04, which has no Swift 6.3 toolchains, so every job failed while installing the toolchain. Test Swift 6.4 and the 6.4 and main nightlies with NDK r30 on Ubuntu 26.04, and install binutils-gold, which the toolchains need there.
Swift Build, the default build system in Swift 6.4, supports --static-swift-stdlib for dynamic libraries, so the examples no longer need to pass -static-stdlib and the static resource directory to swiftc. The default toolchain is now 6.4.
Build the Swift code for each app's minSdk instead of a fixed API 28, and set minSdk to 23. native-activity and swift-java-weather-app need API 24: AChoreographer and getifaddrs, which swift-nio uses, start there. Adaptive icons move to mipmap-anydpi-v26, since they need API 26.
Comment thread swift-android.gradle.kts Resolved
@finagolfin
finagolfin merged commit ff2879b into swiftlang:main Nov 12, 2026
16 checks passed
@finagolfin

Copy link
Copy Markdown
Member

Thanks for updating these examples, Nik. 🚀

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.

2 participants