| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -28,6 +28,14 @@ param(
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					Import-Module (Join-Path $PSScriptRoot "../helpers" | Join-Path -ChildPath "nix-helpers.psm1") -DisableNameChecking
 | 
					 | 
					 | 
					 | 
					Import-Module (Join-Path $PSScriptRoot "../helpers" | Join-Path -ChildPath "nix-helpers.psm1") -DisableNameChecking
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					Import-Module (Join-Path $PSScriptRoot "../helpers" | Join-Path -ChildPath "win-helpers.psm1") -DisableNameChecking
 | 
					 | 
					 | 
					 | 
					Import-Module (Join-Path $PSScriptRoot "../helpers" | Join-Path -ChildPath "win-helpers.psm1") -DisableNameChecking
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					function Create-ArtifactDirectories {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    $env:BINARIES_DIRECTORY = Join-Path $env:RUNNER_TEMP "binaries"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    New-Item -Path $env:BINARIES_DIRECTORY -ItemType "directory"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    $env:ARTIFACT_DIRECTORY = Join-Path $env:RUNNER_TEMP "artifact"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    New-Item -Path $env:ARTIFACT_DIRECTORY -ItemType "directory"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					function Get-GoBuilder {
 | 
					 | 
					 | 
					 | 
					function Get-GoBuilder {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    <#
 | 
					 | 
					 | 
					 | 
					    <#
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    .SYNOPSIS
 | 
					 | 
					 | 
					 | 
					    .SYNOPSIS
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -66,6 +74,8 @@ function Get-GoBuilder {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    return $builder
 | 
					 | 
					 | 
					 | 
					    return $builder
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					}
 | 
					 | 
					 | 
					 | 
					}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					Create-ArtifactDirectories
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					### Create Go builder instance, and build artifact
 | 
					 | 
					 | 
					 | 
					### Create Go builder instance, and build artifact
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					$Builder = Get-GoBuilder -Version $Version -Platform $Platform -Architecture $Architecture
 | 
					 | 
					 | 
					 | 
					$Builder = Get-GoBuilder -Version $Version -Platform $Platform -Architecture $Architecture
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					$Builder.Build()
 | 
					 | 
					 | 
					 | 
					$Builder.Build()
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
					 | 
					 | 
					
 
 |