Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,27 @@ jobs:

- name: swift test
run: swift test

windows_tests:
name: Windows Tests
runs-on: windows-2025
strategy:
fail-fast: false
matrix:
include:
# Requires https://github.com/swiftlang/swift-package-manager/issues/6367 so can't use e.g. 6.0.3, 5.10.1, or 5.9.2.
- branch: "swift-6.1.3-release"
tag: "6.1.3-RELEASE"
- branch: "swift-6.2.2-release"
tag: "6.2.2-RELEASE"
steps:
- uses: actions/checkout@v4

- name: Install Swift
uses: compnerd/gha-setup-swift@main
with:
branch: ${{ matrix.branch }}
tag: ${{ matrix.tag }}

- name: swift test
run: swift test
11 changes: 10 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,16 @@ let package = Package(
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
],
swiftSettings: [.enableExperimentalFeature("StrictConcurrency")]
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency"),
.unsafeFlags(
[
"-Xfrontend", "-entry-point-function-name",
"-Xfrontend", "wWinMain",
],
.when(platforms: [.windows])
),
]
),
.testTarget(
name: "HashableMacroTests",
Expand Down
Loading