Skip to content

Commit

Permalink
Attempt at caching the cpp build dir
Browse files Browse the repository at this point in the history
  • Loading branch information
markmandel committed Aug 13, 2019
1 parent 4c86ea3 commit eb92bdf
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,24 @@ steps:
id: build-sdks
waitFor:
- lint
- cpp-sdk-build-restore-cache
- ensure-build-sdk-image-base
dir: "build"
args: [ "-j", "4", "--output-sync=target", "build-sdks"]

#
# Cache the cpp sdk build directory, to speed up subsequent builds (considerably)
#

- name: 'gcr.io/$PROJECT_ID/save_cache'
args:
- '--bucket=gs://$_CACHE_BUCKET'
- '--key=$_CPP_SDK_BUILD_CACHE_KEY'
- '--path=sdks/cpp/.build'
id: cpp-sdk-build-save-cache
waitFor:
- build-sdks

#
# Run the all the automated tests (except e2e) in parallel
#
Expand Down

0 comments on commit eb92bdf

Please sign in to comment.