Skip to content

Commit

Permalink
Linux: improve ccache caching
Browse files Browse the repository at this point in the history
Use consistent source paths.
  • Loading branch information
FooBarWidget committed Oct 13, 2024
1 parent 0773285 commit 9b4cc8f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion linux/support/build-script-docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,23 @@ if $SHOW_TASKS; then
else
export PASSENGER_DIR=/passenger
export CACHE_DIR=/cache
export WORK_DIR=/work
export OUTPUT_DIR=/output
export IN_HOLY_BUILD_BOX=true
if [[ -e /nginx ]]; then
export NGINX_DIR=/nginx
fi

export USE_CCACHE=true
export CCACHE_BASEDIR=/work
export CCACHE_SLOPPINESS=time_macros
export CCACHE_NOHASHDIR=true
unset CCACHE_HASHDIR

run mkdir /work
run chown builder: /cache /work
run setuser builder mkdir -p "$CCACHE_DIR"
run chown builder: /cache "$CCACHE_DIR"
run chown builder: /cache /work "$CCACHE_DIR"

run_exec setuser builder \
/usr/local/rvm/bin/rvm-exec ruby-$LAST_RUBY_VERSION \
Expand Down

0 comments on commit 9b4cc8f

Please sign in to comment.