mirror of
https://github.com/Swatinem/rust-cache.git
synced 2025-12-27 01:53:59 -05:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d47c6ad4b | ||
|
|
27b8ea9368 |
19
CHANGELOG.md
19
CHANGELOG.md
@@ -1,5 +1,24 @@
|
||||
# Changelog
|
||||
|
||||
## 2.7.8
|
||||
|
||||
- Include CPU arch in the cache key
|
||||
|
||||
## 2.7.7
|
||||
|
||||
- Also cache `cargo install` metadata
|
||||
|
||||
## 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.
|
||||
|
||||
5
dist/restore/index.js
vendored
5
dist/restore/index.js
vendored
@@ -86755,9 +86755,10 @@ class CacheConfig {
|
||||
key += `-${job}`;
|
||||
}
|
||||
}
|
||||
// Add runner OS to the key to avoid cross-contamination of cache
|
||||
// Add runner OS and CPU architecture to the key to avoid cross-contamination of cache
|
||||
const runnerOS = external_os_default().type();
|
||||
key += `-${runnerOS}`;
|
||||
const runnerArch = external_os_default().arch();
|
||||
key += `-${runnerOS}-${runnerArch}`;
|
||||
self.keyPrefix = key;
|
||||
// Construct environment portion of the key:
|
||||
// This consists of a hash that considers the rust version
|
||||
|
||||
5
dist/save/index.js
vendored
5
dist/save/index.js
vendored
@@ -86755,9 +86755,10 @@ class CacheConfig {
|
||||
key += `-${job}`;
|
||||
}
|
||||
}
|
||||
// Add runner OS to the key to avoid cross-contamination of cache
|
||||
// Add runner OS and CPU architecture to the key to avoid cross-contamination of cache
|
||||
const runnerOS = external_os_default().type();
|
||||
key += `-${runnerOS}`;
|
||||
const runnerArch = external_os_default().arch();
|
||||
key += `-${runnerOS}-${runnerArch}`;
|
||||
self.keyPrefix = key;
|
||||
// Construct environment portion of the key:
|
||||
// This consists of a hash that considers the rust version
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "rust-cache",
|
||||
"version": "2.7.7",
|
||||
"version": "2.7.8",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "rust-cache",
|
||||
"version": "2.7.7",
|
||||
"version": "2.7.8",
|
||||
"license": "LGPL-3.0",
|
||||
"dependencies": {
|
||||
"@actions/buildjet-cache": "npm:github-actions.cache-buildjet@0.2.0",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"private": true,
|
||||
"name": "rust-cache",
|
||||
"version": "2.7.7",
|
||||
"version": "2.7.8",
|
||||
"description": "A GitHub Action that implements smart caching for rust/cargo projects with sensible defaults.",
|
||||
"keywords": [
|
||||
"actions",
|
||||
|
||||
@@ -74,9 +74,10 @@ export class CacheConfig {
|
||||
}
|
||||
}
|
||||
|
||||
// Add runner OS to the key to avoid cross-contamination of cache
|
||||
// Add runner OS and CPU architecture to the key to avoid cross-contamination of cache
|
||||
const runnerOS = os.type();
|
||||
key += `-${runnerOS}`;
|
||||
const runnerArch = os.arch();
|
||||
key += `-${runnerOS}-${runnerArch}`;
|
||||
|
||||
self.keyPrefix = key;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user