Skip to content

Commit 8288364

Browse files
RISCfutureclaude
andcommitted
Conditionally include E2E target on macOS only, restore Linux tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3e824d4 commit 8288364

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ jobs:
4747
steps:
4848
- uses: actions/checkout@v4
4949
- name: Build
50-
run: swift build --target SwiftCIFP -v
50+
run: swift build -v
51+
- name: Test
52+
run: swift test -v
5153
lint:
5254
name: Run Swiftlint
5355
runs-on: ubuntu-latest

Package.swift

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,20 @@ let package = Package(
2828
name: "SwiftCIFPTests",
2929
dependencies: ["SwiftCIFP"]
3030
),
31+
],
32+
swiftLanguageModes: [.v5, .v6]
33+
)
34+
35+
#if os(macOS)
36+
package.targets.append(
3137
.executableTarget(
3238
name: "SwiftCIFP_E2E",
3339
dependencies: [
3440
"SwiftCIFP",
3541
.product(name: "ArgumentParser", package: "swift-argument-parser"),
3642
.product(name: "ZIPFoundation", package: "ZIPFoundation"),
37-
.product(name: "Progress", package: "Progress.swift")
43+
.product(name: "Progress", package: "Progress.swift"),
3844
]
3945
)
40-
],
41-
swiftLanguageModes: [.v5, .v6]
42-
)
46+
)
47+
#endif

0 commit comments

Comments
 (0)