Skip to content

Commit 77004a0

Browse files
committed
Debug failing windows tests
1 parent a671524 commit 77004a0

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

1

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Note in the readme the extension only works with SPM projects
2+
3+
Clarify that the extension is meant to work with Swift Package Manager
4+
based projects, and supporting Xcode projects is not well supported.
5+
6+
Fixes: #1636
7+
# Please enter the commit message for your changes. Lines starting
8+
# with '#' will be ignored, and an empty message aborts the commit.
9+
#
10+
# On branch note-spm-readme
11+
# Changes to be committed:
12+
# modified: README.md
13+
#

scripts/test_windows.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ if ($LASTEXITCODE -ne 0) {
8686
}
8787

8888
Write-Host "Swift version:"
89-
Write-Host "$swiftVersionOutput"
89+
Write-Host "$swiftVersionOutput "
9090

9191
$versionLine = $swiftVersionOutput[0]
9292
if ($versionLine -match "Swift version (\d+)\.(\d+)") {
@@ -104,6 +104,8 @@ if ($versionLine -match "Swift version (\d+)\.(\d+)") {
104104
if ($majorVersion -lt 6 -or ($majorVersion -eq 6 -and $minorVersion -lt 1)) {
105105
Write-Host "Swift version is < 6.1, injecting windows SDK build arguments"
106106
Update-SwiftBuildAndPackageArguments
107+
108+
winget install --id Microsoft.VisualStudio.2022.Community --exact --silent --accept-package-agreements --accept-source-agreements --custom "--add Microsoft.VisualStudio.Component.Windows11SDK.22000 --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.VC.Tools.ARM64"
107109
}
108110
} else {
109111
Write-Host "Match failed for output: `"$versionLine`""

0 commit comments

Comments
 (0)