Skip to content

Commit

Permalink
CI: attempt to cache the go build cache
Browse files Browse the repository at this point in the history
Signed-off-by: Nalin Dahyabhai <[email protected]>
  • Loading branch information
nalind committed Dec 4, 2024
1 parent f0fef5e commit 6b42d36
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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'
Expand All @@ -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'
Expand All @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6b42d36

Please sign in to comment.