Skip to content

Commit d673172

Browse files
committed
fixup! wip: ci
1 parent 8a7be0b commit d673172

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

.github/extension/BuildPhpExtension/private/Add-VS.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ function Add-Vs {
8383
}
8484
end {
8585
}
86-
}
86+
}

.github/extension/BuildPhpExtension/private/Get-VsVersion.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ function Get-VsVersion {
2121
if($PhpVersion -eq 'master') { $majorMinor = 'master'; } else { $majorMinor = $PhpVersion.Substring(0, 3); }
2222
$VsVersion = $($VsConfig.php.$majorMinor)
2323
$selectedToolset = $null
24+
25+
Add-StepLog "Visual Studio components version: $VsVersion"
26+
Add-StepLog "Visual Studio components config: $VsConfig"
27+
2428
try {
2529
$selectedToolset = Get-VsVersionHelper -VsVersion $VsVersion -VsConfig $VsConfig
2630
} catch {
@@ -34,4 +38,4 @@ function Get-VsVersion {
3438
}
3539
end {
3640
}
37-
}
41+
}

.github/workflows/win.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,21 @@ jobs:
7979
# with:
8080
# release: ${{ github.event.release.tag_name }}
8181
# token: ${{ secrets.GITHUB_TOKEN }}
82+
83+
msbuild:
84+
runs-on: windows-2022
85+
steps:
86+
- name: Add msbuild to PATH
87+
uses: microsoft/setup-msbuild@v2
88+
- run: |
89+
msbuild -version
90+
91+
msbuild_16:
92+
runs-on: windows-2022
93+
steps:
94+
- name: Add msbuild to PATH
95+
uses: microsoft/setup-msbuild@v2
96+
with:
97+
vs-version: '16'
98+
- run: |
99+
msbuild -version

0 commit comments

Comments
 (0)