mirror of
				https://github.com/Swatinem/rust-cache.git
				synced 2025-10-31 19:33:48 +00:00 
			
		
		
		
	Update dist directory
This commit is contained in:
		
							parent
							
								
									2c11e3358f
								
							
						
					
					
						commit
						3abbfe0f3f
					
				
							
								
								
									
										6
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							| @ -87340,9 +87340,14 @@ async function run() { | ||||
|         if (process.env["RUNNER_OS"] == "macOS") { | ||||
|             await macOsWorkaround(); | ||||
|         } | ||||
|         const crates = core.getInput("cache-all-crates").toLowerCase() || "false"; | ||||
|         const allPackages = []; | ||||
|         for (const workspace of config.workspaces) { | ||||
|             const packages = await workspace.getPackagesOutsideWorkspaceRoot(); | ||||
|             if (crates === "true") { | ||||
|                 const wsMembers = await workspace.getWorkspaceMembers(); | ||||
|                 packages.push(...wsMembers); | ||||
|             } | ||||
|             allPackages.push(...packages); | ||||
|             try { | ||||
|                 core.info(`... Cleaning ${workspace.target} ...`); | ||||
| @ -87353,7 +87358,6 @@ async function run() { | ||||
|             } | ||||
|         } | ||||
|         try { | ||||
|             const crates = core.getInput("cache-all-crates").toLowerCase() || "false"; | ||||
|             core.info(`... Cleaning cargo registry (cache-all-crates: ${crates}) ...`); | ||||
|             await cleanRegistry(allPackages, crates !== "true"); | ||||
|         } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user