mirror of
				https://github.com/Swatinem/rust-cache.git
				synced 2025-10-31 19:13:50 +00:00 
			
		
		
		
	
		
			
				
	
	
	
		
			3.5 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			3.5 KiB
		
	
	
	
	
	
	
	
Changelog
2.8.1
- Set empty CARGO_ENCODED_RUSTFLAGSwhen retrieving metadata
- Various dependency updates
2.8.0
- Add support for warpbuildcache provider
- Add new cache-workspace-cratesfeature
2.7.8
- Include CPU arch in the cache key
2.7.7
- Also cache cargo installmetadata
2.7.6
- Allow opting out of caching $CARGO_HOME/bin
- Add runner OS in cache key
- Adds an option to do lookup-only of the cache
2.7.5
- Support Cargo.lock format cargo-lock v4
- Only run macOsWorkaround() on macOS
2.7.3
- Work around upstream problem that causes cache saving to hang for minutes.
2.7.2
- Only key by Cargo.tomlandCargo.lockfiles of workspace members.
2.7.1
- Update toml parser to fix parsing errors.
2.7.0
- Properly cache trybuildtests.
2.6.2
- Fix tomlparsing.
2.6.1
- Fix hash contributions of Cargo.lock/Cargo.tomlfiles.
2.6.0
- Add "buildjet" as a second cache-providerbackend.
- Clean up sparse registry index.
- Do not clean up src of -syscrates.
- Remove .cargo/credentials.tomlbefore saving.
2.5.1
- Fix hash contribution of Cargo.lock.
2.5.0
- feat: Rm workspace crates version before caching.
- feat: Add hash of .cargo/config.tomlto key.
2.4.0
- Fix cache key stability.
- Use 8 character hash components to reduce the key length, making it more readable.
2.3.0
- Add cache-all-cratesoption, which enables caching of crates installed by workflows.
- Add installed packages to cache key, so changes to workflows that install rust tools are detected and cached properly.
- Fix cache restore failures due to upstream bug.
- Fix EISDIRerror due to globed directories.
- Update runtime @actions/cache,@actions/ioand devtypescriptdependencies.
- Update npm run prepareso it creates distribution files with the right line endings.
2.2.1
- Update @actions/cachedependency to fix usage ofzstdcompression.
2.2.0
- Add new save-ifoption to always restore, but only conditionally save the cache.
2.1.0
- Only hash Cargo.{lock,toml}files in the configured workspace directories.
2.0.2
- Avoid calling cargo metadataon pre-cleanup.
- Added prefix-key,cache-directoriesandcache-targetsoptions.
2.0.1
- Primarily just updating dependencies to fix GitHub deprecation notices.
2.0.0
- The action code was refactored to allow for caching multiple workspaces and
different targetdirectory layouts.
- The working-directoryandtarget-dirinput options were replaced by a singleworkspacesoption that has the form of$workspace -> $target.
- Support for considering env-varsas part of the cache key.
- The sharedKeyinput option was renamed toshared-keyfor consistency.
1.4.0
- Clean both debugandreleasetarget directories.
1.3.0
- Use Rust toolchain file as additional cache key.
- Allow for a configurable target-dir.
1.2.0
- Cache ~/.cargo/bin.
- Support for custom $CARGO_HOME.
- Add a cache-hitoutput.
- Add a new sharedKeyoption that overrides the automatic job-name based key.
1.1.0
- Add a new working-directoryinput.
- Support caching git dependencies.
- Lots of other improvements.
1.0.2
- Don’t prune targets that have a different name from the crate, but do prune targets from the workspace.
1.0.1
- Improved logging output.
- Make sure to consider all-featuresdependencies when pruning.
- Work around macOS cache corruption.
- Remove git-db cache for now.