onnxruntime/tools/ci_build/github/azure-pipelines/templates/check-cache-stats.yml
Yi Zhang 962d8d2b19
Add compilation cache in react native CI (#15329)
### Description
1. Replacing jobs with stages for better debugging and maintainance
2. Added compilation cache to accelerate the workflow.
3. Splited building protobuf and major code as 2 tasks



### Motivation and Context
Reduced compilation time about one hour.
test run:

https://dev.azure.com/onnxruntime/onnxruntime/_build/results?buildId=943695&view=logs&j=de302ec2-2305-57e0-e8c6-cd89c569f2a3&t=8b360243-7783-51da-8079-2304089d3d1d
2023-04-06 10:39:14 +08:00

15 lines
331 B
YAML

# it's used to check the cache stats after building with ccache
parameters:
- name: CacheDir
displayName: Cache Directory
type: string
steps:
- script: |
ccache -sv
ccache -z
ls -l $CCACHE_DIR
du -sh $CCACHE_DIR
displayName: Show Cache stats
env:
CCACHE_DIR: ${{ parameters.CacheDir }}