Skip to content

Commit b959ca3

Browse files
committed
.cirrus.yml: add golangci-lint cache for freebsd task
This shaves the linting time: - from 8 to 2 minutes on Cirrus CI with 4 CPUs and 8 GB RAM; - from 11 to 3 minutes on Cirrus CI with 2 CPUs and 4 GB RAM; when the cache is reused. The cache size is quite modest (~3MB compressed, ~7MB uncompressed). Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent c958d5b commit b959ca3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.cirrus.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,13 @@ freebsd_alt_build_task:
333333
memory: 8Gb
334334
setup_script:
335335
- pkg install -y gpgme bash go-md2man gmake gsed gnugrep go pkgconf zstd
336+
- go version # Downloads a new go version based on go.mod's go directive.
337+
golint_cache:
338+
folder: ~/.cache/golangci-lint
339+
reupload_on_changes: true
340+
fingerprint_script:
341+
- go version
342+
- grep GOLANGCI_LINT_VERSION Makefile | head -1
336343
lint_script:
337344
- gmake golangci-lint
338345
build_amd64_script:

0 commit comments

Comments
 (0)