Cache dither results
Some checks failed
Deploy / deploy (push) Has been cancelled

This commit is contained in:
David Eisinger
2026-04-08 23:54:20 -04:00
parent 7b769b3e1f
commit a0a120b31e
5 changed files with 46 additions and 3 deletions

View File

@@ -3,9 +3,12 @@ set -euo pipefail
repo_root=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
dither_dir="${repo_root}/bin/dither"
cache_dir="${DITHER_CACHE_DIR:-${repo_root}/.cache/dither}"
mkdir -p "${cache_dir}"
pushd "${dither_dir}" >/dev/null
ROOT="${repo_root}/content" KEY="${repo_root}/secret.key" bundle exec ruby dither.rb &
ROOT="${repo_root}/content" KEY="${repo_root}/secret.key" DITHER_CACHE_DIR="${cache_dir}" bundle exec ruby dither.rb &
dither_pid=$!
popd >/dev/null