Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

feat(caching): Cache clojure dependencies #831

Open
wants to merge 2 commits into
base: focal
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion run-build-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,14 @@ install_dependencies() {
fi
fi

# Clojure CLI
if [ -f deps.edn ]
then
restore_home_cache ".m2" "maven dependencies"
restore_home_cache ".gitlibs" "clojure git dependencies"
restore_cwd_cache ".cpcache" "clojure classpath"
fi

# Hugo
if [ -n "$HUGO_VERSION" ]
then
Expand Down Expand Up @@ -802,6 +810,7 @@ cache_artifacts() {

cache_cwd_directory ".venv" "python virtualenv"
cache_cwd_directory ".build" "swift build"
cache_cwd_directory ".cpcache" "clojure classpath"
cache_cwd_directory ".netlify/plugins" "build plugins"
cache_cwd_directory ".netlify/rust-functions-cache" "Rust functions"

Expand All @@ -818,6 +827,7 @@ cache_artifacts() {
cache_home_directory ".emacs.d" "emacs cache"
cache_home_directory ".m2" "maven dependencies"
cache_home_directory ".boot" "boot dependencies"
cache_home_directory ".gitlibs" "clojure git dependencies"
cache_home_directory ".composer" "composer dependencies"
cache_home_directory ".homebrew-cache", "homebrew cache"
cache_home_directory ".rustup" "rust rustup cache"
Expand Down Expand Up @@ -1039,4 +1049,3 @@ install_go() {
fi

}