Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build pipeline refactor #10513

Closed
wants to merge 14 commits into from
Prev Previous commit
Next Next commit
stash
keveleigh committed Jun 22, 2022
commit fe28fc947c8d6759bc3fd0bd10acc40bb6d2a5f6
9 changes: 1 addition & 8 deletions pipelines/templates/tasks/build-unity.yaml
Original file line number Diff line number Diff line change
@@ -28,14 +28,7 @@ parameters:
default: ''

steps:
- pwsh: |
# Module management requires TLS 1.2.
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
# UnitySetup 5.5.146-develop specifically added support for Unity 2021.
if (-not (Get-InstalledModule -Name UnitySetup -MinimumVersion "5.5.146-develop" -AllowPrerelease)) {
Install-Module UnitySetup -Scope CurrentUser -Force -AllowPrerelease
}

- powershell: |
$logFile = Join-Path $(Agent.TempDirectory) "build_${{ parameters.BuildTarget }}.log"
$proc = Start-UnityEditor -Project ${{ parameters.PathToProject }} -Version ${{ parameters.UnityVersion }} -ExecuteMethod ${{ parameters.CommandLineBuildMethod }} -BatchMode -Quit -PassThru -LogFile $logFile -BuildTarget ${{ parameters.BuildTarget }} -OutputPath ${{ parameters.OutputPath }} -AdditionalArguments "-CacheServerIPAddress ${Env:COG-UnityCache-WUS2-01} ${{ parameters.AdditionalArguments }}"
$ljob = Start-Job -ScriptBlock { param($log) Get-Content "$log" -Wait } -ArgumentList $logFile