|
@@ -6,9 +6,7 @@ parameters:
|
|
download_cache_path: ''
|
|
download_cache_path: ''
|
|
ccache_version: 1 # Increment this number if CI has trouble with ccache.
|
|
ccache_version: 1 # Increment this number if CI has trouble with ccache.
|
|
serenity_ccache_path: ''
|
|
serenity_ccache_path: ''
|
|
- serenity_ccache_size: '5G'
|
|
|
|
toolchain_ccache_path: ''
|
|
toolchain_ccache_path: ''
|
|
- toolchain_ccache_size: $(CCACHE_MAXSIZE)
|
|
|
|
with_remote_data_caches: true
|
|
with_remote_data_caches: true
|
|
|
|
|
|
steps:
|
|
steps:
|
|
@@ -40,8 +38,11 @@ steps:
|
|
displayName: 'Toolchain Compiler Cache'
|
|
displayName: 'Toolchain Compiler Cache'
|
|
|
|
|
|
- script: |
|
|
- script: |
|
|
- CCACHE_DIR=${{ parameters.toolchain_ccache_path }} ccache -M ${{ parameters.toolchain_ccache_size }}
|
|
|
|
|
|
+ # Reset all ccache modification dates to a known epoch. This provides a baseline that we can prune against.
|
|
|
|
+ find ${{ parameters.toolchain_ccache_path }} | tac | xargs touch -a -m -d "2018-10-10T09:53:07Z"
|
|
|
|
+ CCACHE_DIR=${{ parameters.toolchain_ccache_path }} ccache -M 0
|
|
CCACHE_DIR=${{ parameters.toolchain_ccache_path }} ccache -s
|
|
CCACHE_DIR=${{ parameters.toolchain_ccache_path }} ccache -s
|
|
|
|
+ CCACHE_DIR=${{ parameters.toolchain_ccache_path }} ccache -z
|
|
displayName: 'Configure Toolchain ccache'
|
|
displayName: 'Configure Toolchain ccache'
|
|
|
|
|
|
- ${{ if ne(parameters.serenity_ccache_path, '') }}:
|
|
- ${{ if ne(parameters.serenity_ccache_path, '') }}:
|
|
@@ -54,9 +55,11 @@ steps:
|
|
displayName: 'Serenity Compiler Cache'
|
|
displayName: 'Serenity Compiler Cache'
|
|
|
|
|
|
- script: |
|
|
- script: |
|
|
- CCACHE_DIR=${{ parameters.serenity_ccache_path }} ccache -M ${{ parameters.serenity_ccache_size }}
|
|
|
|
- CCACHE_DIR=${{ parameters.serenity_ccache_path }} ccache -c
|
|
|
|
|
|
+ # Reset all ccache modification dates to a known epoch. This provides a baseline that we can prune against.
|
|
|
|
+ find ${{ parameters.serenity_ccache_path }} | tac | xargs touch -a -m -d "2018-10-10T09:53:07Z"
|
|
|
|
+ CCACHE_DIR=${{ parameters.serenity_ccache_path }} ccache -M 0
|
|
CCACHE_DIR=${{ parameters.serenity_ccache_path }} ccache -s
|
|
CCACHE_DIR=${{ parameters.serenity_ccache_path }} ccache -s
|
|
|
|
+ CCACHE_DIR=${{ parameters.serenity_ccache_path }} ccache -z
|
|
displayName: 'Configure Serenity ccache'
|
|
displayName: 'Configure Serenity ccache'
|
|
|
|
|
|
- ${{ if eq(parameters.with_remote_data_caches, true) }}:
|
|
- ${{ if eq(parameters.with_remote_data_caches, true) }}:
|