-
Notifications
You must be signed in to change notification settings - Fork 41
Enable Windows CI #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Enable Windows CI #189
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -213,16 +213,6 @@ let package = Package( | |
| "HomomorphicEncryptionProtobuf", | ||
| "_TestUtilities", | ||
| ], swiftSettings: executableSettings), | ||
| .testTarget( | ||
| name: "PIRGenerateDatabaseTests", | ||
| dependencies: ["PIRGenerateDatabase", | ||
| "_TestUtilities", | ||
| .product(name: "Numerics", package: "swift-numerics")], swiftSettings: executableSettings), | ||
| .testTarget( | ||
| name: "PIRProcessDatabaseTests", | ||
| dependencies: ["PIRProcessDatabase", | ||
| "_TestUtilities", | ||
| .product(name: "Numerics", package: "swift-numerics")], swiftSettings: executableSettings), | ||
| .testTarget( | ||
| name: "PrivateInformationRetrievalTests", | ||
| dependencies: [ | ||
|
|
@@ -245,6 +235,23 @@ let package = Package( | |
| ], swiftSettings: executableSettings), | ||
| ]) | ||
|
|
||
| // Workaround SwiftPM's attempt to link in executables which does not work on all | ||
| // platforms. | ||
|
Comment on lines
+238
to
+239
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we come up with a different way to support these tests? Do we have other options? |
||
| #if !os(Windows) | ||
| package.targets.append(contentsOf: [ | ||
| .testTarget( | ||
| name: "PIRGenerateDatabaseTests", | ||
| dependencies: ["PIRGenerateDatabase", | ||
| "_TestUtilities", | ||
| .product(name: "Numerics", package: "swift-numerics")], swiftSettings: executableSettings), | ||
| .testTarget( | ||
| name: "PIRProcessDatabaseTests", | ||
| dependencies: ["PIRProcessDatabase", | ||
| "_TestUtilities", | ||
| .product(name: "Numerics", package: "swift-numerics")], swiftSettings: executableSettings), | ||
| ]) | ||
| #endif | ||
|
|
||
| // MARK: - Benchmarks | ||
|
|
||
| var enableBenchmarking: Bool { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -80,3 +80,5 @@ precondition(decoded == [8, 5, 12, 12, 15, 0, 8, 5]) | |
| // plaintext to any observer. The observed value in this case is zero. | ||
| try sum -= sum | ||
| precondition(sum.isTransparent()) | ||
|
|
||
| preconditionFailure() | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mark this with a TODO to remove it. |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.