Release v0.87.42 updater repair #219
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: MSBuild | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| PROJECT_FILE_PATH: Engine\examples\HeadlessCI\HeadlessCI.vcxproj | |
| BUILD_CONFIGURATION: Release | |
| BUILD_PLATFORM: x64 | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: windows-2022 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Resolve MSBuild | |
| shell: pwsh | |
| run: | | |
| $vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" | |
| $msbuild = & $vswhere -latest -products * -requires Microsoft.Component.MSBuild -find MSBuild\Current\Bin\MSBuild.exe | |
| if (-not $msbuild) { | |
| throw "MSBuild.exe was not found by vswhere." | |
| } | |
| "MSBUILD_EXE=$msbuild" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
| - name: Build HeadlessCI | |
| shell: pwsh | |
| run: > | |
| & "$env:MSBUILD_EXE" $env:PROJECT_FILE_PATH | |
| /m:1 | |
| /p:Configuration=$env:BUILD_CONFIGURATION | |
| /p:Platform=$env:BUILD_PLATFORM | |
| /p:EpochExtraDefines=EPOCH_CI_HEADLESS_BUILD=1 | |
| /clp:ErrorsOnly | |
| - name: Run HeadlessCI | |
| shell: pwsh | |
| run: | | |
| $exe = Get-ChildItem -Path $env:GITHUB_WORKSPACE -Filter HeadlessCI.exe -Recurse | | |
| Sort-Object FullName | | |
| Select-Object -First 1 | |
| if (-not $exe) { | |
| throw "HeadlessCI.exe was not produced." | |
| } | |
| & $exe.FullName $env:GITHUB_WORKSPACE |