Skip to content

Commit

Permalink
stash
Browse files Browse the repository at this point in the history
  • Loading branch information
keveleigh committed Jun 22, 2022
1 parent 3fcb671 commit fe28fc9
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pipelines/templates/tasks/build-unity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe28fc9

Please sign in to comment.