Skip to content

Commit 957252f

Browse files
committed
Add symlink to cargo cache dir
This will improve performance on successive runs. Note that we store the cache on GitHub Actions, so it will make things much faster on CI.
1 parent 5dd94b9 commit 957252f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/build_old_docs.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#
33
# A script to generate documentation for previous releases of MUSE2.
44

5+
import os
56
import shutil
67
import subprocess as sp
78
import sys
@@ -20,6 +21,9 @@ def clone_repo_to(dest: Path):
2021
print("Making a copy of repo")
2122
sp.run(("git", "clone", REPO_ROOT, dest), check=True, capture_output=True)
2223

24+
# Add a symlink to cargo cache dir
25+
os.symlink(REPO_ROOT / "target", dest / "target")
26+
2327

2428
def build_docs_for_release(release: str, repo_path: Path, outdir: Path) -> None:
2529
"""Build documentation for a given release."""

0 commit comments

Comments
 (0)