build: cache build artifacts for Go

This commit is contained in:
George Rawlinson 2022-06-18 12:54:15 +12:00
parent 0cead13226
commit 275b596046
Signed by: grawlinson
GPG key ID: E0959FEA8B550539

View file

@ -44,7 +44,10 @@ for package in "${PACKAGES[@]}"; do
# go - modules
if grep -q "depends = go" <<<"$makepkg_output"; then
EXTRA_ARGS+=(--bind-rw /var/cache/golang/pkg:/build/go/pkg)
EXTRA_ARGS+=(
--bind-rw /var/cache/golang/pkg:/build/go/pkg
--bind-rw /var/cache/golang/build:/build/.cache/go-build
)
fi
# dart - packages