mirror of
				https://github.com/Swatinem/rust-cache.git
				synced 2025-10-31 15:43:49 +00:00 
			
		
		
		
	Only run macOsWorkaround() on macOS (#206)
This commit is contained in:
		
							parent
							
								
									9bdad043e8
								
							
						
					
					
						commit
						96a8d65dba
					
				
							
								
								
									
										4
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							| @ -88832,7 +88832,9 @@ async function run() { | |||||||
|         config.printInfo(cacheProvider); |         config.printInfo(cacheProvider); | ||||||
|         core.info(""); |         core.info(""); | ||||||
|         // TODO: remove this once https://github.com/actions/toolkit/pull/553 lands
 |         // TODO: remove this once https://github.com/actions/toolkit/pull/553 lands
 | ||||||
|         await macOsWorkaround(); |         if (process.env["RUNNER_OS"] == "macOS") { | ||||||
|  |             await macOsWorkaround(); | ||||||
|  |         } | ||||||
|         const allPackages = []; |         const allPackages = []; | ||||||
|         for (const workspace of config.workspaces) { |         for (const workspace of config.workspaces) { | ||||||
|             const packages = await workspace.getPackagesOutsideWorkspaceRoot(); |             const packages = await workspace.getPackagesOutsideWorkspaceRoot(); | ||||||
|  | |||||||
| @ -32,7 +32,9 @@ async function run() { | |||||||
|     core.info(""); |     core.info(""); | ||||||
| 
 | 
 | ||||||
|     // TODO: remove this once https://github.com/actions/toolkit/pull/553 lands
 |     // TODO: remove this once https://github.com/actions/toolkit/pull/553 lands
 | ||||||
|     await macOsWorkaround(); |     if (process.env["RUNNER_OS"] == "macOS") { | ||||||
|  |       await macOsWorkaround(); | ||||||
|  |     } | ||||||
| 
 | 
 | ||||||
|     const allPackages = []; |     const allPackages = []; | ||||||
|     for (const workspace of config.workspaces) { |     for (const workspace of config.workspaces) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user