diff --git a/.cirrus.yml b/.cirrus.yml index 62b3a44e21f..d6066cfeb08 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -107,6 +107,9 @@ smoke_task: binary_artifacts: path: ./bin/* + go_build_cache: + folder: /root/.cache/go-build + # Check that all included go modules from other sources match # # what is expected in `vendor/modules.txt` vs `go.mod`. vendor_task: @@ -147,7 +150,8 @@ cross_build_task: - make -j cross CGO_ENABLED=0 binary_artifacts: path: ./bin/* - + go_build_cache: + folder: /root/.cache/go-build unit_task: name: 'Unit tests w/ $STORAGE_DRIVER' @@ -171,6 +175,8 @@ unit_task: binary_artifacts: path: ./bin/* + go_build_cache: + folder: /root/.cache/go-build conformance_task: name: 'Debian Conformance w/ $STORAGE_DRIVER' @@ -192,6 +198,8 @@ conformance_task: setup_script: '${SCRIPT_BASE}/setup.sh conformance |& ${_TIMESTAMP}' conformance_test_script: '${SCRIPT_BASE}/test.sh conformance |& ${_TIMESTAMP}' + go_build_cache: + folder: /root/.cache/go-build integration_task: name: "Integration $DISTRO_NV w/ $STORAGE_DRIVER" @@ -249,6 +257,9 @@ integration_task: package_versions_script: '$GOSRC/$SCRIPT_BASE/logcollector.sh packages' golang_version_script: '$GOSRC/$SCRIPT_BASE/logcollector.sh golang' + go_build_cache: + folder: /root/.cache/go-build + integration_rootless_task: name: "Integration rootless $DISTRO_NV w/ $STORAGE_DRIVER" alias: integration_rootless