mirror of
https://github.com/Swatinem/rust-cache
synced 2025-06-25 09:43:43 +00:00
Add cache-workspace-crates feature (#246)
This commit is contained in:
parent
901019c0f8
commit
eaa85be6b1
4 changed files with 20 additions and 0 deletions
5
dist/save/index.js
vendored
5
dist/save/index.js
vendored
|
@ -87340,9 +87340,14 @@ async function run() {
|
|||
if (process.env["RUNNER_OS"] == "macOS") {
|
||||
await macOsWorkaround();
|
||||
}
|
||||
const workspaceCrates = core.getInput("cache-workspace-crates").toLowerCase() || "false";
|
||||
const allPackages = [];
|
||||
for (const workspace of config.workspaces) {
|
||||
const packages = await workspace.getPackagesOutsideWorkspaceRoot();
|
||||
if (workspaceCrates === "true") {
|
||||
const wsMembers = await workspace.getWorkspaceMembers();
|
||||
packages.push(...wsMembers);
|
||||
}
|
||||
allPackages.push(...packages);
|
||||
try {
|
||||
core.info(`... Cleaning ${workspace.target} ...`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue