File tree 1 file changed +17
-6
lines changed
1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change 23
23
- name : Run container
24
24
shell : pwsh
25
25
run : |
26
- $repoWorkspace = "${{ github.workspace }}" -replace "/", "\"
27
- docker run -dit --name orphan `
28
- -v "$repoWorkspace:C:\mount\source" `
29
- -v "$env:VCToolsInstallDir:C:\mount\msvc" `
30
- -v "$env:WindowsSdkDir:C:\mount\windowssdk" `
31
- nanoserver-msvc-winsdk cmd
26
+ function Remove-Trailing-Backslash($path) {
27
+ return $path -replace '\\$', ''
28
+ }
29
+
30
+ $repoWorkspace = Remove-Trailing-Backslash("${{ github.workspace }}")
31
+ $vctoolsPath = Remove-Trailing-Backslash($env:VCToolsInstallDir)
32
+ $windowsSdkPath = Remove-Trailing-Backslash($env:WindowsSdkDir)
33
+
34
+ Write-Host "Source Path: $repoWorkspace"
35
+ Write-Host "MSVC Path: $vctoolsPath"
36
+ Write-Host "Windows SDK Path: $windowsSdkPath"
37
+
38
+ docker run --rm -it --name orphan `
39
+ -v "$repoWorkspace:C:\mount\source" `
40
+ -v "$vctoolsPath:C:\mount\msvc" `
41
+ -v "$windowsSdkPath:C:\mount\windowssdk" `
42
+ nanoserver-msvc-winsdk cmd
You can’t perform that action at this time.
0 commit comments