Add Linux support#3
Merged
Merged
Conversation
Guard String(localized:) behind a Linux shim that resolves keys to themselves (the API doesn't exist on swift-corelibs-foundation), and import FoundationNetworking where URLSession/HTTPURLResponse are used. URLSession.bytes(from:) has no Linux equivalent, so URLStreamLoader falls back to buffering the whole response with data(from:) there (FAA DOF files are modest-sized). Port the E2E tool's progress bar off NSKeyValueObservation (Darwin only) to polling. Build the E2E executable target on all platforms instead of macOS only, and add Ubuntu to the CI matrix. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Keep the Build-and-Test matrix on both macOS and Ubuntu. Move the SwiftLint job to ubuntu-latest via the ghcr.io/realm/swiftlint container (SwiftLint runs cleanly on Linux), and move the documentation build to ubuntu-latest. Periphery stays on macOS (needs an index-store build with no clean Linux install path). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
String(localized:)behind a Linux shim (unavailable on swift-corelibs-foundation)FoundationNetworkingwhereURLSession/HTTPURLResponseare usedURLStreamLoaderon Linux, sinceURLSession.bytes(from:)has no Linux equivalentNSKeyValueObservation(Darwin-only) to pollingSwiftDOF_E2Eexecutable target on all platforms instead of macOS onlyTest plan
swift build—Build complete!swift test— 58 tests passedSwiftDOF_E2E) — downloaded real FAA DOF data, parsed 641,207 obstacles, 0 parse errorsswift build—Build complete!swift test— 59 tests passedswiftlint --stricton changed files — cleanswift format lint --stricton changed files — cleanCo-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com