|
14 | 14 |
|
15 | 15 | $env:CI = "1"
|
16 | 16 | $env:FAST_TEST_RUN = "1"
|
| 17 | + |
| 18 | +Get-ChildItem -Path "C:\Program Files\" |
| 19 | +Get-ChildItem -Path "C:\Program Files\Microsoft Visual Studio" |
| 20 | +Get-ChildItem -Path "C:\Program Files\Microsoft Visual Studio\2022\" |
| 21 | +Get-ChildItem -Path "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" |
| 22 | +Get-ChildItem -Path "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\" |
| 23 | +Get-ChildItem -Path "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\" |
| 24 | +Get-ChildItem -Path "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\" |
| 25 | +Get-ChildItem -Path "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808" |
| 26 | + |
| 27 | +Get-ChildItem -Path "C:\Program Files (x86)\Windows Kits\10\bin" |
| 28 | + |
| 29 | +# There are two versions of Visual C++ tools installed on the machine running the GH action: |
| 30 | +# - 14.29.30133 |
| 31 | +# - 14.43.34808 |
| 32 | +# Use the 14.43.34808 version. |
| 33 | + |
| 34 | +$env:VCToolsVersion = "14.43.34808" |
| 35 | +$env:VCToolsInstallDir = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808" |
| 36 | + |
| 37 | +Get-ChildItem Env: |
| 38 | + |
| 39 | +$jsonFilePath = "./assets/test/.vscode/settings.json" |
| 40 | +$jsonContent = Get-Content -Raw -Path $jsonFilePath | ConvertFrom-Json |
| 41 | +$jsonContent | Add-Member -MemberType NoteProperty -Name "swift.buildArguments" -Value @("-Xbuild-tools-swiftc", "-windows-sdk-root", "-Xbuild-tools-swiftc", "C:\Program Files (x86)\Windows Kits\10\", "-Xbuild-tools-swiftc", "-windows-sdk-version", "-Xbuild-tools-swiftc", "10.0.22000.0", "-Xbuild-tools-swiftc", "-visualc-tools-version", "-Xbuild-tools-swiftc", "14.43.34808", "-Xswiftc", "-windows-sdk-root", "-Xswiftc", "C:\Program Files (x86)\Windows Kits\10\", "-Xswiftc", "-windows-sdk-version", "-Xswiftc", "10.0.22000.0", "-Xswiftc", "-visualc-tools-version", "-Xswiftc", "14.43.34808") |
| 42 | +$jsonContent | Add-Member -MemberType NoteProperty -Name "swift.packageArguments" -Value @("-Xbuild-tools-swiftc", "-windows-sdk-root", "-Xbuild-tools-swiftc", "C:\Program Files (x86)\Windows Kits\10\", "-Xbuild-tools-swiftc", "-windows-sdk-version", "-Xbuild-tools-swiftc", "10.0.22000.0", "-Xbuild-tools-swiftc", "-visualc-tools-version", "-Xbuild-tools-swiftc", "14.43.34808", "-Xswiftc", "-windows-sdk-root", "-Xswiftc", "C:\Program Files (x86)\Windows Kits\10\", "-Xswiftc", "-windows-sdk-version", "-Xswiftc", "10.0.22000.0", "-Xswiftc", "-visualc-tools-version", "-Xswiftc", "14.43.34808") |
| 43 | +$jsonContent | ConvertTo-Json -Depth 32 | Set-Content -Path $jsonFilePath |
| 44 | + |
| 45 | +Write-Host "Contents of ${jsonFilePath}:" |
| 46 | +Get-Content -Path $jsonFilePath |
| 47 | + |
17 | 48 | npm ci -ignore-script node-pty
|
18 | 49 | npm run lint
|
19 | 50 | npm run format
|
|
0 commit comments