| 
									
										
										
										
											2022-01-27 06:00:11 +00:00
										 |  |  | # | 
					
						
							|  |  |  | # Create directory for license activation | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ACTIVATE_LICENSE_PATH="$($Env:GITHUB_WORKSPACE)/_activate-license" | 
					
						
							|  |  |  | mkdir $ACTIVATE_LICENSE_PATH | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-01-25 21:18:15 +00:00
										 |  |  | # Activate Unity | 
					
						
							|  |  |  | & "c:\steps\activate.ps1" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Import any necessary registry keys, ie: location of windows 10 sdk | 
					
						
							|  |  |  | # No guarantee that there will be any necessary registry keys, ie: tvOS | 
					
						
							|  |  |  | Get-ChildItem -Path c:\regkeys -File | Foreach {reg import $_.fullname} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Register the Visual Studio installation so Unity can find it | 
					
						
							|  |  |  | regsvr32 C:\ProgramData\Microsoft\VisualStudio\Setup\x64\Microsoft.VisualStudio.Setup.Configuration.Native.dll | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Build the project | 
					
						
							|  |  |  | & "c:\steps\build.ps1" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Free the seat for the activated license | 
					
						
							|  |  |  | & "c:\steps\return_license.ps1" | 
					
						
							| 
									
										
										
										
											2022-01-27 06:00:11 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # Remove license activation directory | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Remove-Item -Path $ACTIVATE_LICENSE_PATH -Recurse |