Skip to content

Commit a17508e

Browse files
committed
Work CI-CD
- Add ccache to all platforms. - Adjust AZDO pipeline yamls. - Add PS1 to install install ccache.
1 parent fc168ed commit a17508e

9 files changed

+142
-11
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -380,3 +380,6 @@ sdkconfig
380380
CMakeUserPresets.json
381381
config/user-tools-repos.json
382382
config/user-prefs.json
383+
384+
# ccache cache files
385+
.ccache/

azure-pipelines-nightly.yml

+6
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ jobs:
296296
REVISION: $[counter('STM32_1_10_0_versioncounter', 0)]
297297
HelperPackageVersion: $[counter('HelperPackageVersioncounter', 0)]
298298
TargetPlatform: "stm32"
299+
CCACHE_DIR: $(Build.SourcesDirectory)/nf-interpreter/.ccache
299300

300301
steps:
301302
- template: azure-pipelines-templates/build-preparations.yml
@@ -304,6 +305,7 @@ jobs:
304305
- template: azure-pipelines-templates/download-install-ninja.yml
305306
- template: azure-pipelines-templates/download-srecord.yml
306307
- template: azure-pipelines-templates/download-hexdfu.yml
308+
- template: azure-pipelines-templates/download-ccache.yml
307309
- template: azure-pipelines-templates/build-chibios-stm32-targets.yml
308310
- template: azure-pipelines-templates/pack-publish-artifacts.yml
309311
- template: azure-pipelines-templates/publish-cloudsmith.yml
@@ -546,6 +548,8 @@ jobs:
546548
# creates a counter and assigns it to the revision variable
547549
REVISION: $[counter('ESP32_1_10_0_versioncounter', 0)]
548550
IDF_PATH: "D:/a/1/s/esp-idf"
551+
IDF_CCACHE_ENABLE: "1"
552+
CCACHE_DIR: $(Build.SourcesDirectory)/nf-interpreter/.ccache
549553
PIP_CACHE_DIR: $(Pipeline.Workspace)/.pip
550554
TargetPlatform: "esp32"
551555

@@ -629,6 +633,7 @@ jobs:
629633
- template: azure-pipelines-templates/nb-gitversioning.yml
630634
- template: azure-pipelines-templates/download-install-arm-gcc-toolchain.yml
631635
- template: azure-pipelines-templates/download-install-ninja.yml
636+
- template: azure-pipelines-templates/download-ccache.yml
632637
- template: azure-pipelines-templates/build-ti-simplelink-targets.yml
633638
- template: azure-pipelines-templates/pack-publish-artifacts.yml
634639
- template: azure-pipelines-templates/publish-cloudsmith.yml
@@ -682,6 +687,7 @@ jobs:
682687
- template: azure-pipelines-templates/download-install-ninja.yml
683688
- template: azure-pipelines-templates/download-hexdfu.yml
684689
- template: azure-pipelines-templates/download-srecord.yml
690+
- template: azure-pipelines-templates/download-ccache.yml
685691
- template: azure-pipelines-templates/build-azurertos-targets.yml
686692
- template: azure-pipelines-templates/pack-publish-artifacts.yml
687693
- template: azure-pipelines-templates/publish-cloudsmith.yml

azure-pipelines-templates/build-azurertos-targets.yml

+17-4
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,49 @@ steps:
1111
parameters:
1212
repoDirectory: ${{ parameters.repoDirectory }}
1313

14+
- task: Cache@2
15+
displayName: Cache ccache files
16+
inputs:
17+
key: 'ccache-azurertos | 0'
18+
path: $(Build.SourcesDirectory)/nf-interpreter/.ccache
19+
cacheHitVar: CCACHE_RESTORED
20+
1421
- task: CMake@1
1522
displayName: Setup CMake (DFU, no SRecord)
1623
condition: and(eq(variables['NeedsDFU'], true), eq(variables['NeedsSRECORD'], 'false'))
1724
inputs:
18-
cmakeArgs: "--preset $(CMakePreset) -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_NAME=$(TargetPublishName) -DTOOL_HEX2DFU_PREFIX=$(HEX2DFU_PATH) $(BuildOptions) "
25+
cmakeArgs: "--preset $(CMakePreset) -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_NAME=$(TargetPublishName) -DTOOL_HEX2DFU_PREFIX=$(HEX2DFU_PATH) $(BuildOptions) "
1926
workingDirectory: ${{ parameters.repoDirectory }}
2027

2128
- task: CMake@1
2229
displayName: Setup CMake build (SRecord, no DFU)
2330
condition: and(eq(variables['NeedsSRECORD'], true), eq(variables['NeedsDFU'], false))
2431
inputs:
25-
cmakeArgs: "--preset $(CMakePreset) -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_NAME=$(TargetPublishName) -DTOOL_SRECORD_PREFIX=$(SRECORD_PATH)/srecord/ $(BuildOptions) "
32+
cmakeArgs: "--preset $(CMakePreset) -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_NAME=$(TargetPublishName) -DTOOL_SRECORD_PREFIX=$(SRECORD_PATH)/srecord/ $(BuildOptions) "
2633
workingDirectory: ${{ parameters.repoDirectory }}
2734

2835
- task: CMake@1
2936
displayName: Setup CMake build (DFU and SRecord)
3037
condition: and(eq(variables['NeedsDFU'], true), eq(variables['NeedsSRECORD'], true))
3138
inputs:
32-
cmakeArgs: "--preset $(CMakePreset) -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_NAME=$(TargetPublishName) -DTOOL_HEX2DFU_PREFIX=$(HEX2DFU_PATH) -DTOOL_SRECORD_PREFIX=$(SRECORD_PATH)/srecord/ $(BuildOptions) "
39+
cmakeArgs: "--preset $(CMakePreset) -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_NAME=$(TargetPublishName) -DTOOL_HEX2DFU_PREFIX=$(HEX2DFU_PATH) -DTOOL_SRECORD_PREFIX=$(SRECORD_PATH)/srecord/ $(BuildOptions) "
3340
workingDirectory: ${{ parameters.repoDirectory }}
3441

3542
- task: CMake@1
3643
displayName: Setup CMake build (no DFU, no SRecord)
3744
condition: and(eq(variables['NeedsDFU'], false), eq(variables['NeedsSRECORD'], false))
3845
inputs:
39-
cmakeArgs: "--preset $(CMakePreset) -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_NAME=$(TargetPublishName) $(BuildOptions) "
46+
cmakeArgs: "--preset $(CMakePreset) -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_NAME=$(TargetPublishName) $(BuildOptions) "
4047
workingDirectory: ${{ parameters.repoDirectory }}
4148

4249
- task: CMake@1
4350
displayName: Build with CMake
4451
inputs:
4552
cmakeArgs: "--build --preset $(CMakePreset) --target all --config MinSizeRel"
4653
workingDirectory: ${{ parameters.repoDirectory }}
54+
55+
- task: Cache@2
56+
displayName: Save ccache files
57+
inputs:
58+
key: 'ccache-azurertos | 0'
59+
path: $(Build.SourcesDirectory)/nf-interpreter/.ccache

azure-pipelines-templates/build-chibios-stm32-targets.yml

+17-4
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,49 @@ steps:
1111
parameters:
1212
repoDirectory: ${{ parameters.repoDirectory }}
1313

14+
- task: Cache@2
15+
displayName: Cache ccache files
16+
inputs:
17+
key: 'ccache-chibios | 0'
18+
path: $(Build.SourcesDirectory)/nf-interpreter/.ccache
19+
cacheHitVar: CCACHE_RESTORED
20+
1421
- task: CMake@1
1522
displayName: Setup CMake (DFU, no SRecord)
1623
condition: and(eq(variables['NeedsDFU'], true), eq(variables['NeedsSRECORD'], 'false'))
1724
inputs:
18-
cmakeArgs: "--preset $(CMakePreset) -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_NAME=$(TargetPublishName) -DTOOL_HEX2DFU_PREFIX=$(HEX2DFU_PATH) $(BuildOptions) "
25+
cmakeArgs: "--preset $(CMakePreset) -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_NAME=$(TargetPublishName) -DTOOL_HEX2DFU_PREFIX=$(HEX2DFU_PATH) $(BuildOptions) "
1926
workingDirectory: ${{ parameters.repoDirectory }}
2027

2128
- task: CMake@1
2229
displayName: Setup CMake build (SRecord, no DFU)
2330
condition: and(eq(variables['NeedsSRECORD'], true), eq(variables['NeedsDFU'], false))
2431
inputs:
25-
cmakeArgs: "--preset $(CMakePreset) -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_NAME=$(TargetPublishName) -DTOOL_SRECORD_PREFIX=$(SRECORD_PATH)/srecord/ $(BuildOptions) "
32+
cmakeArgs: "--preset $(CMakePreset) -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_NAME=$(TargetPublishName) -DTOOL_SRECORD_PREFIX=$(SRECORD_PATH)/srecord/ $(BuildOptions) "
2633
workingDirectory: ${{ parameters.repoDirectory }}
2734

2835
- task: CMake@1
2936
displayName: Setup CMake build (DFU and SRecord)
3037
condition: and(eq(variables['NeedsDFU'], true), eq(variables['NeedsSRECORD'], true))
3138
inputs:
32-
cmakeArgs: "--preset $(CMakePreset) -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_NAME=$(TargetPublishName) -DTOOL_HEX2DFU_PREFIX=$(HEX2DFU_PATH) -DTOOL_SRECORD_PREFIX=$(SRECORD_PATH)/srecord/ $(BuildOptions) "
39+
cmakeArgs: "--preset $(CMakePreset) -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_NAME=$(TargetPublishName) -DTOOL_HEX2DFU_PREFIX=$(HEX2DFU_PATH) -DTOOL_SRECORD_PREFIX=$(SRECORD_PATH)/srecord/ $(BuildOptions) "
3340
workingDirectory: ${{ parameters.repoDirectory }}
3441

3542
- task: CMake@1
3643
displayName: Setup CMake build (no DFU, no SRecord)
3744
condition: and(eq(variables['NeedsDFU'], false), eq(variables['NeedsSRECORD'], false))
3845
inputs:
39-
cmakeArgs: "--preset $(CMakePreset) -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_NAME=$(TargetPublishName) $(BuildOptions) "
46+
cmakeArgs: "--preset $(CMakePreset) -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_NAME=$(TargetPublishName) $(BuildOptions) "
4047
workingDirectory: ${{ parameters.repoDirectory }}
4148

4249
- task: CMake@1
4350
displayName: Build with CMake
4451
inputs:
4552
cmakeArgs: "--build --preset $(CMakePreset) --target all --config MinSizeRel"
4653
workingDirectory: ${{ parameters.repoDirectory }}
54+
55+
- task: Cache@2
56+
displayName: Save ccache files
57+
inputs:
58+
key: 'ccache-chibios | 0'
59+
path: $(Build.SourcesDirectory)/nf-interpreter/.ccache

azure-pipelines-templates/build-espressif-esp32-targets.yml

+27-1
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,25 @@ steps:
1414
parameters:
1515
repoDirectory: ${{ parameters.repoDirectory }}
1616

17+
- task: Cache@2
18+
displayName: Cache IDF components
19+
inputs:
20+
key: 'esp-idf-components-cache | 0'
21+
path: $(Agent.BuildDirectory)/s/esp-idf/components
22+
cacheHitVar: ESP32_COMPONENTS_RESTORED
23+
24+
- task: Cache@2
25+
displayName: Cache ccache files
26+
inputs:
27+
key: 'ccache-$(IDF_Target) | 0'
28+
path: $(Build.SourcesDirectory)/nf-interpreter/.ccache
29+
cacheHitVar: CCACHE_RESTORED
30+
1731
- task: CMake@1
1832
condition: succeeded()
1933
displayName: Setup build with CMake
2034
inputs:
21-
cmakeArgs: "--preset $(CMakePreset) -DESP32_IDF_PATH=$(IDF_PATH) -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_NAME=$(TargetPublishName) $(BuildOptions)"
35+
cmakeArgs: "--preset $(CMakePreset) -DCCACHE_ENABLE=ON -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DESP32_IDF_PATH=$(IDF_PATH) -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_NAME=$(TargetPublishName) $(BuildOptions)"
2236
workingDirectory: ${{ parameters.repoDirectory }}
2337

2438
- task: CMake@1
@@ -97,3 +111,15 @@ steps:
97111
TargetFolder: ${{ parameters.repoDirectory }}\build
98112
flattenFolders: false
99113
ignoreMakeDirErrors: true
114+
115+
- task: Cache@2
116+
displayName: Save IDF components
117+
inputs:
118+
key: 'esp-idf-components-cache | 0'
119+
path: $(Agent.BuildDirectory)/s/esp-idf/components
120+
121+
- task: Cache@2
122+
displayName: Save ccache files
123+
inputs:
124+
key: 'ccache-$(IDF_Target) | 0'
125+
path: $(Build.SourcesDirectory)/nf-interpreter/.ccache

azure-pipelines-templates/build-freertos-nxp-targets.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,16 @@ steps:
1111
parameters:
1212
repoDirectory: ${{ parameters.repoDirectory }}
1313

14+
- task: Cache@2
15+
displayName: Cache ccache files
16+
inputs:
17+
key: 'ccache-freeRTOS | 0'
18+
path: $(Build.SourcesDirectory)/nf-interpreter/.ccache
19+
cacheHitVar: CCACHE_RESTORED
20+
1421
- task: CMake@1
1522
inputs:
16-
cmakeArgs: "--preset $(CMakePreset) -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_NAME=$(TargetPublishName) -DTOOL_SRECORD_PREFIX=$(SRECORD_PATH)/srecord/ $(BuildOptions)"
23+
cmakeArgs: "--preset $(CMakePreset) -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_NAME=$(TargetPublishName) -DTOOL_SRECORD_PREFIX=$(SRECORD_PATH)/srecord/ $(BuildOptions)"
1724
workingDirectory: ${{ parameters.repoDirectory }}
1825
displayName: Setup build with CMake
1926

@@ -22,3 +29,9 @@ steps:
2229
cmakeArgs: "--build --preset $(CMakePreset) --target all --config MinSizeRel"
2330
workingDirectory: ${{ parameters.repoDirectory }}
2431
displayName: Build with CMake
32+
33+
- task: Cache@2
34+
displayName: Save ccache files
35+
inputs:
36+
key: 'ccache-freeRTOS | 0'
37+
path: $(Build.SourcesDirectory)/nf-interpreter/.ccache

azure-pipelines-templates/build-ti-simplelink-targets.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,16 @@ steps:
1111
parameters:
1212
repoDirectory: ${{ parameters.repoDirectory }}
1313

14+
- task: Cache@2
15+
displayName: Cache ccache files
16+
inputs:
17+
key: 'ccache-ti-simplelink | 0'
18+
path: $(Build.SourcesDirectory)/nf-interpreter/.ccache
19+
cacheHitVar: CCACHE_RESTORED
20+
1421
- task: CMake@1
1522
inputs:
16-
cmakeArgs: " --preset $(TargetBoard) -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_BOARD=$(TargetBoard) -DTARGET_NAME=$(TargetPublishName) $(BuildOptions)"
23+
cmakeArgs: " --preset $(TargetBoard) -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_BOARD=$(TargetBoard) -DTARGET_NAME=$(TargetPublishName) $(BuildOptions)"
1724
workingDirectory: ${{ parameters.repoDirectory }}
1825
displayName: Setup build with CMake
1926

@@ -22,3 +29,9 @@ steps:
2229
cmakeArgs: "--build --preset $(TargetBoard) --target all --config MinSizeRel"
2330
workingDirectory: ${{ parameters.repoDirectory }}
2431
displayName: Build with CMake
32+
33+
- task: Cache@2
34+
displayName: Save ccache files
35+
inputs:
36+
key: 'ccache-ti-simplelink | 0'
37+
path: $(Build.SourcesDirectory)/nf-interpreter/.ccache
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Copyright (c) .NET Foundation and Contributors
2+
# See LICENSE file in the project root for full license information.
3+
4+
steps:
5+
- task: Cache@2
6+
displayName: "Cache ccache"
7+
inputs:
8+
key: "ccache | 4_10_2"
9+
path: 'C:\Program Files\ccache'
10+
cacheHitVar: CCACHE_CACHE_RESTORED
11+
12+
- task: PowerShell@2
13+
displayName: Downloading Ccache
14+
condition: ne(variables.CCACHE_CACHE_RESTORED, 'true')
15+
inputs:
16+
targetType: "inline"
17+
script: |
18+
$url = "https://github.com/ccache/ccache/releases/download/v4.10.2/ccache-4.10.2-windows-x86_64.zip"
19+
$output = "$(Agent.TempDirectory)\ccache.zip"
20+
(New-Object Net.WebClient).DownloadFile($url, $output)
21+
errorActionPreference: "stop"
22+
failOnStderr: true
23+
24+
- task: ExtractFiles@1
25+
displayName: Install Ccache
26+
condition: ne(variables.CCACHE_CACHE_RESTORED, 'true')
27+
inputs:
28+
archiveFilePatterns: '$(Agent.TempDirectory)\ccache.zip'
29+
destinationFolder: '$(Agent.TempDirectory)\ccache'
30+
31+
- script: echo "##vso[task.prependpath]$(Agent.TempDirectory)\ccache"
32+
displayName: Add Ccache to PATH
33+
condition: succeeded()

azure-pipelines.yml

+11
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ jobs:
414414
REVISION: $[counter('STM32_1_10_0_versioncounter', 0)]
415415
HelperPackageVersion: $[counter('HelperPackageVersioncounter', 0)]
416416
TargetPlatform: "stm32"
417+
CCACHE_DIR: $(Build.SourcesDirectory)/nf-interpreter/.ccache
417418

418419
steps:
419420
- template: azure-pipelines-templates/build-preparations.yml
@@ -422,6 +423,7 @@ jobs:
422423
- template: azure-pipelines-templates/download-install-ninja.yml
423424
- template: azure-pipelines-templates/download-srecord.yml
424425
- template: azure-pipelines-templates/download-hexdfu.yml
426+
- template: azure-pipelines-templates/download-ccache.yml
425427
- template: azure-pipelines-templates/build-chibios-stm32-targets.yml
426428
- template: azure-pipelines-templates/pack-publish-artifacts.yml
427429
- template: azure-pipelines-templates/publish-cloudsmith.yml
@@ -563,6 +565,9 @@ jobs:
563565
# creates a counter and assigns it to the revision variable
564566
REVISION: $[counter('ESP32_1_10_0_versioncounter', 0)]
565567
IDF_PATH: "D:/a/1/s/esp-idf"
568+
IDF_CCACHE_ENABLE: "1"
569+
CCACHE_NOHASHDIR: "1"
570+
CCACHE_DIR: $(Build.SourcesDirectory)/nf-interpreter/.ccache
566571
PIP_CACHE_DIR: $(Pipeline.Workspace)/.pip
567572
TargetPlatform: "esp32"
568573

@@ -645,13 +650,15 @@ jobs:
645650
REVISION: $[counter('NXP_1_10_0_versioncounter', 0)]
646651
GIT_LFS_SKIP_SMUDGE: 1
647652
TargetPlatform: "freertos"
653+
CCACHE_DIR: $(Build.SourcesDirectory)/nf-interpreter/.ccache
648654

649655
steps:
650656
- template: azure-pipelines-templates/build-preparations.yml
651657
- template: azure-pipelines-templates/nb-gitversioning.yml
652658
- template: azure-pipelines-templates/download-install-arm-gcc-toolchain.yml
653659
- template: azure-pipelines-templates/download-install-ninja.yml
654660
- template: azure-pipelines-templates/download-srecord.yml
661+
- template: azure-pipelines-templates/download-ccache.yml
655662
- template: azure-pipelines-templates/build-freertos-nxp-targets.yml
656663
- template: azure-pipelines-templates/pack-publish-artifacts.yml
657664
- template: azure-pipelines-templates/publish-cloudsmith.yml
@@ -723,12 +730,14 @@ jobs:
723730
REVISION: $[counter('TI_1_10_0_versioncounter', 0)]
724731
HelperPackageVersion: $[counter('HelperPackageVersioncounter', 0)]
725732
TargetPlatform: "ti_simplelink"
733+
CCACHE_DIR: $(Build.SourcesDirectory)/nf-interpreter/.ccache
726734

727735
steps:
728736
- template: azure-pipelines-templates/build-preparations.yml
729737
- template: azure-pipelines-templates/nb-gitversioning.yml
730738
- template: azure-pipelines-templates/download-install-arm-gcc-toolchain.yml
731739
- template: azure-pipelines-templates/download-install-ninja.yml
740+
- template: azure-pipelines-templates/download-ccache.yml
732741
- template: azure-pipelines-templates/build-ti-simplelink-targets.yml
733742
- template: azure-pipelines-templates/pack-publish-artifacts.yml
734743
- template: azure-pipelines-templates/publish-cloudsmith.yml
@@ -794,6 +803,7 @@ jobs:
794803
REVISION: $[counter('AZURERTOS_1_10_0_versioncounter', 0)]
795804
HelperPackageVersion: $[counter('HelperPackageVersioncounter', 0)]
796805
TargetPlatform: "azure_rtos"
806+
CCACHE_DIR: $(Build.SourcesDirectory)/nf-interpreter/.ccache
797807

798808
steps:
799809
- template: azure-pipelines-templates/build-preparations.yml
@@ -802,6 +812,7 @@ jobs:
802812
- template: azure-pipelines-templates/download-install-ninja.yml
803813
- template: azure-pipelines-templates/download-hexdfu.yml
804814
- template: azure-pipelines-templates/download-srecord.yml
815+
- template: azure-pipelines-templates/download-ccache.yml
805816
- template: azure-pipelines-templates/build-azurertos-targets.yml
806817
- template: azure-pipelines-templates/pack-publish-artifacts.yml
807818
- template: azure-pipelines-templates/publish-cloudsmith.yml

0 commit comments

Comments
 (0)