Use zig from cache if it exists
This commit is contained in:
		
							parent
							
								
									ac8783ec73
								
							
						
					
					
						commit
						44120b6411
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		
							
								
								
									
										5
									
								
								index.js
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								index.js
									
										
									
									
									
								
							|  | @ -35,7 +35,10 @@ async function main () { | |||
|     return | ||||
|   } | ||||
| 
 | ||||
|   const zigPath = await downloadZig(version) | ||||
|   let zigPath = cache.find('zig', version) | ||||
|   if (!zigPath) { | ||||
|     zigPath = await downloadZig(version) | ||||
|   } | ||||
| 
 | ||||
|   // Add the `zig` binary to the $PATH
 | ||||
|   actions.addPath(zigPath) | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue