# to use ccache, run this template step before build-cmake.yml
# and add this cmake flag to extraBuildFlags
# -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
variables:
  - group: common
  - template: /.azuredevops/variables-global.yml
steps:
- task: Cache@2
  displayName: Ccache caching
  inputs:
    key: 'ccache | "$(Agent.OS)" | $(Build.SourceVersion)'
    path: ${{ variables.CCACHE_DIR }}
    restoreKeys: |
      ccache | "$(Agent.OS)"
