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

Commit

Permalink
Merge pull request #424 from netlify/feat/plugins-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed May 18, 2020
2 parents a0c7eb8 + 6b0deb5 commit 18310f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions run-build-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ mkdir -p $NETLIFY_CACHE_DIR/bower_components
mkdir -p $NETLIFY_CACHE_DIR/.venv
mkdir -p $NETLIFY_CACHE_DIR/wapm_packages
mkdir -p $NETLIFY_CACHE_DIR/.build
mkdir -p $NETLIFY_CACHE_DIR/.netlify/plugins

# HOME caches
mkdir -p $NETLIFY_CACHE_DIR/.yarn_cache
Expand Down Expand Up @@ -240,6 +241,9 @@ install_dependencies() {
fi
fi

# Automatically installed Build plugins
restore_cwd_cache ".netlify/plugins" "build plugins"

# Ruby version
local tmprv="${RUBY_VERSION:=$defaultRubyVersion}"
source $HOME/.rvm/scripts/rvm
Expand Down Expand Up @@ -671,6 +675,7 @@ cache_artifacts() {
cache_cwd_directory ".venv" "python virtualenv"
cache_cwd_directory "wapm_packages" "wapm packages"
cache_cwd_directory ".build" "swift build"
cache_cwd_directory ".netlify/plugins" "build plugins"

cache_home_directory ".yarn_cache" "yarn cache"
cache_home_directory ".cache" "pip cache"
Expand Down

0 comments on commit 18310f2

Please sign in to comment.