Repository navigation
Destinations builds on Linux: the bookmark store is Apple-only; CI builds the Linux modules - #15
Merged
Merged
Conversation
…ilds the Linux modules (#13) Security-scoped bookmarks exist only in Apple's Foundation, so `DriveFolderStore` and its tests are compiled only where Darwin is. Nothing changes on Apple platforms. A new Linux CI job builds the modules and test targets that use no Apple framework. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Skeyelab
enabled auto-merge (squash)
December 3, 2026 06:30
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This was referenced Dec 3, 2026
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.
Fixes #13
What changed
Sources/Destinations/Destinations.swift:DriveFolderStore(the security-scoped bookmark code) is inside#if canImport(Darwin). The rest of the module (DestinationKind,BookmarkStorage,StoredDriveFolder,Drive,DriveStatus,DriveAccess, ...) builds everywhere. On Apple platforms the same code is compiled as before.Tests/DestinationsTests/DriveFolderStoreTests.swift: the same guard, since every test there usesDriveFolderStore..github/workflows/ci.yml: aLinux buildjob (ubuntu-latest,swift:6.2container) that builds the modules and test targets that use no Apple framework.Not done: the whole package still doesn't build on Linux
The issue's acceptance asks for
swift buildandswift testof ShowKit on Linux. That needs more than a guard, so this PR stops at Destinations:CoreAudioIO:InputSession.swiftimports AudioToolbox with no guard.MixerLink: Apple's Network framework.Appearance,Meters: SwiftUI.BroadcastWaveTests: AVFoundation.swift testbuilds every test target, so ShowKit's tests still run on macOS only. The Linux job builds the 8 modules and 6 test targets that do compile there; it runs no tests.Linux output (Swift 6.4.3, x86_64, Arch)
Before, on
main,swift build:After, on this branch,
swift build --target <name>:After, whole-package
swift buildandswift test(still failing, now past Destinations):SoundcheckKit (
Packages/SoundcheckKitin SoundcheckPlayer, at 73ab780)swift teston Linux. With ShowKit 0.3.0 it fails with the two bookmark errors above. With ShowKit pointed at this branch by local path:Apple platforms were not built locally; the macOS jobs in this PR's CI cover them.
🤖 Generated with Claude Code