You've already forked setup-msbuild
mirror of
https://github.com/microsoft/setup-msbuild.git
synced 2026-03-14 21:24:12 +07:00
feat: enhance MSBuild setup summary in workflow 🛠️
- Added matrix strategy for multiple runners - Improved summary output for MSBuild paths and architecture
This commit is contained in:
32
.github/workflows/test.yml
vendored
32
.github/workflows/test.yml
vendored
@@ -14,7 +14,13 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
runner:
|
||||||
|
- windows-latest
|
||||||
|
- windows-2025-vs2026
|
||||||
|
runs-on: ${{ matrix.runner }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
@@ -50,18 +56,24 @@ jobs:
|
|||||||
vs-prerelease: true
|
vs-prerelease: true
|
||||||
msbuild-architecture: "arm64"
|
msbuild-architecture: "arm64"
|
||||||
|
|
||||||
- name: Echo architecture-specific path
|
- name: Write MSBuild summary
|
||||||
if: always()
|
if: always()
|
||||||
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
echo "Runner architecture: ${{ runner.arch }}"
|
@"
|
||||||
echo "x64 PATH: ${{ steps.setup_msbuild_path_x64.outputs.msbuildPath }}"
|
## MSBuild setup summary
|
||||||
echo "arm64 PATH: ${{ steps.setup_msbuild_path_arm64.outputs.msbuildPath }}"
|
|
||||||
|
|
||||||
- name: echo msbuild path
|
- Runner label: `${{ matrix.runner }}`
|
||||||
run: |
|
- Runner architecture: `${{ runner.arch }}`
|
||||||
echo "vswhere-path: ${{ steps.setup_msbuild_explicit.outputs.msbuildPath }}"
|
|
||||||
echo "PATH: ${{ steps.setup_msbuild_path.outputs.msbuildPath }}"
|
| Probe | msbuildPath |
|
||||||
echo "Fallback: ${{ steps.setup_msbuild_fallback.outputs.msbuildPath }}"
|
| --- | --- |
|
||||||
|
| vswhere-path | ${{ steps.setup_msbuild_explicit.outputs.msbuildPath || 'N/A' }} |
|
||||||
|
| PATH | ${{ steps.setup_msbuild_path.outputs.msbuildPath || 'N/A' }} |
|
||||||
|
| Fallback | ${{ steps.setup_msbuild_fallback.outputs.msbuildPath || 'N/A' }} |
|
||||||
|
| x64 | ${{ steps.setup_msbuild_path_x64.outputs.msbuildPath || 'N/A' }} |
|
||||||
|
| arm64 | ${{ steps.setup_msbuild_path_arm64.outputs.msbuildPath || 'N/A' }} |
|
||||||
|
"@ | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Encoding utf8 -Append
|
||||||
|
|
||||||
- name: echo MSBuild
|
- name: echo MSBuild
|
||||||
run: msbuild -version
|
run: msbuild -version
|
||||||
|
|||||||
Reference in New Issue
Block a user