From 55985200ea208823e884e4e5da30e90803f2675e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20D=C3=A9camps?= Date: Thu, 5 Dec 2019 01:46:20 +0100 Subject: [PATCH] Use Cirrus remote cache. https://docs.bazel.build/versions/master/remote-caching.html --- .cirrus.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index a12d7a6..e699dcb 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -1,14 +1,16 @@ task: name: Build on linux - build_sample_script: bazel build //sample/... - build_all_script: bazel build //... + bazel_info_script: bazel info --remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST release + build_sample_script: bazel build --remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST //sample/... + build_all_script: bazel build --remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST //... container: image: l.gcr.io/google/bazel:1.2.1 task: name: Build on Windows install_bazel_script: choco install -y bazel - build_sample_script: bazel build //sample/... - build_all_script: bazel build //... + bazel_info_script: bazel info --remote_http_cache=http://%CIRRUS_HTTP_CACHE_HOST% release + build_sample_script: bazel build --remote_http_cache=http://%CIRRUS_HTTP_CACHE_HOST% //sample/... + build_all_script: bazel build --remote_http_cache=http://%CIRRUS_HTTP_CACHE_HOST% //... windows_container: image: cirrusci/windowsservercore:2019 os_version: 2019