Skip to content

Add Linux support and CI - #31

Merged
otaviocc merged 2 commits into
mainfrom
add-linux-support
Aug 16, 2026
Merged

Add Linux support and CI#31
otaviocc merged 2 commits into
mainfrom
add-linux-support

Conversation

@otaviocc

Copy link
Copy Markdown
Owner

Summary

  • Adds conditional #if canImport(FoundationNetworking) imports across 22 source files and 23 test files that reference URLRequest/URLResponse/URLSession, which live in a separate module on Linux.
  • Removes a leftover, unused import Combine from a test file (dead on every platform, and a hard compile failure on Linux).
  • Fixes URLResponse() in the URLSessionMock test double — Linux's URLResponse has no bare initializer.
  • Adds a test-linux job to CI, matrixed on Swift 6.0 (the package's tools-version floor) and 6.3 (current), skipping the macOS-only coverage step.
  • Updates README/CLAUDE.md/release notes to reflect Linux support and drop a stale Combine reference.

No public API changes — URLSessionProtocol's data(for:delegate:) signature is unchanged and works identically on Linux (verified against swift-corelibs-foundation).

Test plan

  • swift build on macOS
  • swift test on macOS — 179/179 tests pass
  • swiftformat --lint . clean
  • swiftlint — no new violations
  • CI green on this PR, including the new test-linux matrix legs (this PR is the actual Linux verification, since Docker isn't available locally)

Adds conditional FoundationNetworking imports across Sources and Tests,
removes a leftover Combine import, fixes a Linux-incompatible URLResponse()
initializer in the test mock, and adds a Linux job to CI matrixed on
Swift 6.0/6.3. Docs updated to reflect Linux support.
swift-actions/setup-swift@v2 ships a hardcoded version manifest that
tops out at 6.2.1 and doesn't yet know about 6.3, so the "6.3" leg
failed at setup with "Version 6.3 is not available". Also add
fail-fast: false so one bad matrix leg doesn't cancel its sibling.
@otaviocc otaviocc self-assigned this Aug 16, 2026
@otaviocc
otaviocc merged commit 442ca16 into main Aug 16, 2026
6 checks passed
@otaviocc
otaviocc deleted the add-linux-support branch August 16, 2026 20:18
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