From 2430ce5011c655417ee2dfca4eac68f55e5efa5e Mon Sep 17 00:00:00 2001 From: josesimoes Date: Tue, 23 Jul 2024 17:37:01 +0100 Subject: [PATCH] Work CI-CD - Add ccache to all platforms. - Adjust AZDO pipeline yamls. - Add PS1 to install install ccache. --- .gitignore | 3 ++ .../build-azurertos-targets.yml | 21 +++++++++--- .../build-chibios-stm32-targets.yml | 21 +++++++++--- .../build-espressif-esp32-targets.yml | 28 +++++++++++++++- .../build-freertos-nxp-targets.yml | 15 ++++++++- .../build-ti-simplelink-targets.yml | 15 ++++++++- azure-pipelines-templates/download-ccache.yml | 33 +++++++++++++++++++ azure-pipelines.yml | 10 ++++++ 8 files changed, 135 insertions(+), 11 deletions(-) create mode 100644 azure-pipelines-templates/download-ccache.yml diff --git a/.gitignore b/.gitignore index 9727ed1dc9..6a8700dd23 100644 --- a/.gitignore +++ b/.gitignore @@ -380,3 +380,6 @@ sdkconfig CMakeUserPresets.json config/user-tools-repos.json config/user-prefs.json + +# ccache cache files +.ccache/ diff --git a/azure-pipelines-templates/build-azurertos-targets.yml b/azure-pipelines-templates/build-azurertos-targets.yml index fb4f3db41f..de4309b369 100644 --- a/azure-pipelines-templates/build-azurertos-targets.yml +++ b/azure-pipelines-templates/build-azurertos-targets.yml @@ -11,32 +11,39 @@ steps: parameters: repoDirectory: ${{ parameters.repoDirectory }} + - task: Cache@2 + displayName: Cache ccache files + inputs: + key: 'ccache-azurertos | 0' + path: $(Build.SourcesDirectory)/nf-interpreter/.ccache + cacheHitVar: CCACHE_RESTORED + - task: CMake@1 displayName: Setup CMake (DFU, no SRecord) condition: and(eq(variables['NeedsDFU'], true), eq(variables['NeedsSRECORD'], 'false')) inputs: - 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) " + 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) " workingDirectory: ${{ parameters.repoDirectory }} - task: CMake@1 displayName: Setup CMake build (SRecord, no DFU) condition: and(eq(variables['NeedsSRECORD'], true), eq(variables['NeedsDFU'], false)) inputs: - 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) " + 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) " workingDirectory: ${{ parameters.repoDirectory }} - task: CMake@1 displayName: Setup CMake build (DFU and SRecord) condition: and(eq(variables['NeedsDFU'], true), eq(variables['NeedsSRECORD'], true)) inputs: - 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) " + 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) " workingDirectory: ${{ parameters.repoDirectory }} - task: CMake@1 displayName: Setup CMake build (no DFU, no SRecord) condition: and(eq(variables['NeedsDFU'], false), eq(variables['NeedsSRECORD'], false)) inputs: - cmakeArgs: "--preset $(CMakePreset) -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_NAME=$(TargetPublishName) $(BuildOptions) " + 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) " workingDirectory: ${{ parameters.repoDirectory }} - task: CMake@1 @@ -44,3 +51,9 @@ steps: inputs: cmakeArgs: "--build --preset $(CMakePreset) --target all --config MinSizeRel" workingDirectory: ${{ parameters.repoDirectory }} + + - task: Cache@2 + displayName: Save ccache files + inputs: + key: 'ccache-azurertos | 0' + path: $(Build.SourcesDirectory)/nf-interpreter/.ccache diff --git a/azure-pipelines-templates/build-chibios-stm32-targets.yml b/azure-pipelines-templates/build-chibios-stm32-targets.yml index fb4f3db41f..54056352cf 100644 --- a/azure-pipelines-templates/build-chibios-stm32-targets.yml +++ b/azure-pipelines-templates/build-chibios-stm32-targets.yml @@ -11,32 +11,39 @@ steps: parameters: repoDirectory: ${{ parameters.repoDirectory }} + - task: Cache@2 + displayName: Cache ccache files + inputs: + key: 'ccache-chibios | 0' + path: $(Build.SourcesDirectory)/nf-interpreter/.ccache + cacheHitVar: CCACHE_RESTORED + - task: CMake@1 displayName: Setup CMake (DFU, no SRecord) condition: and(eq(variables['NeedsDFU'], true), eq(variables['NeedsSRECORD'], 'false')) inputs: - 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) " + 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) " workingDirectory: ${{ parameters.repoDirectory }} - task: CMake@1 displayName: Setup CMake build (SRecord, no DFU) condition: and(eq(variables['NeedsSRECORD'], true), eq(variables['NeedsDFU'], false)) inputs: - 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) " + 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) " workingDirectory: ${{ parameters.repoDirectory }} - task: CMake@1 displayName: Setup CMake build (DFU and SRecord) condition: and(eq(variables['NeedsDFU'], true), eq(variables['NeedsSRECORD'], true)) inputs: - 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) " + 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) " workingDirectory: ${{ parameters.repoDirectory }} - task: CMake@1 displayName: Setup CMake build (no DFU, no SRecord) condition: and(eq(variables['NeedsDFU'], false), eq(variables['NeedsSRECORD'], false)) inputs: - cmakeArgs: "--preset $(CMakePreset) -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_VersionMajor).$(NBGV_VersionMinor).$(NBGV_BuildNumber).$(TARGET_BUILD_COUNTER) -DTARGET_NAME=$(TargetPublishName) $(BuildOptions) " + 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) " workingDirectory: ${{ parameters.repoDirectory }} - task: CMake@1 @@ -44,3 +51,9 @@ steps: inputs: cmakeArgs: "--build --preset $(CMakePreset) --target all --config MinSizeRel" workingDirectory: ${{ parameters.repoDirectory }} + + - task: Cache@2 + displayName: Save ccache files + inputs: + key: 'ccache-chibios | 0' + path: $(Build.SourcesDirectory)/nf-interpreter/.ccache diff --git a/azure-pipelines-templates/build-espressif-esp32-targets.yml b/azure-pipelines-templates/build-espressif-esp32-targets.yml index 7ae9c3be61..e94584b95a 100644 --- a/azure-pipelines-templates/build-espressif-esp32-targets.yml +++ b/azure-pipelines-templates/build-espressif-esp32-targets.yml @@ -14,11 +14,25 @@ steps: parameters: repoDirectory: ${{ parameters.repoDirectory }} + - task: Cache@2 + displayName: Cache IDF components + inputs: + key: 'esp-idf-components-cache-$(Build.SourceVersion)' + path: $(Agent.BuildDirectory)/s/esp-idf/components + cacheHitVar: ESP32_COMPONENTS_RESTORED + + - task: Cache@2 + displayName: Cache ccache files + inputs: + key: 'ccache-$(IDF_Target) | 0' + path: $(Build.SourcesDirectory)/nf-interpreter/.ccache + cacheHitVar: CCACHE_RESTORED + - task: CMake@1 condition: succeeded() displayName: Setup build with CMake inputs: - 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)" + cmakeArgs: "--preset $(CMakePreset) -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)" workingDirectory: ${{ parameters.repoDirectory }} - task: CMake@1 @@ -97,3 +111,15 @@ steps: TargetFolder: ${{ parameters.repoDirectory }}\build flattenFolders: false ignoreMakeDirErrors: true + + - task: Cache@2 + displayName: Save IDF components + inputs: + key: 'esp-idf-components-cache-$(Build.SourceVersion)' + path: $(Agent.BuildDirectory)/s/esp-idf/components + + - task: Cache@2 + displayName: Save ccache files + inputs: + key: 'ccache-$(IDF_Target) | 0' + path: $(Build.SourcesDirectory)/nf-interpreter/.ccache diff --git a/azure-pipelines-templates/build-freertos-nxp-targets.yml b/azure-pipelines-templates/build-freertos-nxp-targets.yml index 25c20196d7..789559b6b8 100644 --- a/azure-pipelines-templates/build-freertos-nxp-targets.yml +++ b/azure-pipelines-templates/build-freertos-nxp-targets.yml @@ -11,9 +11,16 @@ steps: parameters: repoDirectory: ${{ parameters.repoDirectory }} + - task: Cache@2 + displayName: Cache ccache files + inputs: + key: 'ccache-freeRTOS | 0' + path: $(Build.SourcesDirectory)/nf-interpreter/.ccache + cacheHitVar: CCACHE_RESTORED + - task: CMake@1 inputs: - 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)" + 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)" workingDirectory: ${{ parameters.repoDirectory }} displayName: Setup build with CMake @@ -22,3 +29,9 @@ steps: cmakeArgs: "--build --preset $(CMakePreset) --target all --config MinSizeRel" workingDirectory: ${{ parameters.repoDirectory }} displayName: Build with CMake + + - task: Cache@2 + displayName: Save ccache files + inputs: + key: 'ccache-freeRTOS | 0' + path: $(Build.SourcesDirectory)/nf-interpreter/.ccache diff --git a/azure-pipelines-templates/build-ti-simplelink-targets.yml b/azure-pipelines-templates/build-ti-simplelink-targets.yml index ba5677613e..cf9f30cc0b 100644 --- a/azure-pipelines-templates/build-ti-simplelink-targets.yml +++ b/azure-pipelines-templates/build-ti-simplelink-targets.yml @@ -11,9 +11,16 @@ steps: parameters: repoDirectory: ${{ parameters.repoDirectory }} + - task: Cache@2 + displayName: Cache ccache files + inputs: + key: 'ccache-ti-simplelink | 0' + path: $(Build.SourcesDirectory)/nf-interpreter/.ccache + cacheHitVar: CCACHE_RESTORED + - task: CMake@1 inputs: - 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)" + 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)" workingDirectory: ${{ parameters.repoDirectory }} displayName: Setup build with CMake @@ -22,3 +29,9 @@ steps: cmakeArgs: "--build --preset $(TargetBoard) --target all --config MinSizeRel" workingDirectory: ${{ parameters.repoDirectory }} displayName: Build with CMake + + - task: Cache@2 + displayName: Save ccache files + inputs: + key: 'ccache-ti-simplelink | 0' + path: $(Build.SourcesDirectory)/nf-interpreter/.ccache diff --git a/azure-pipelines-templates/download-ccache.yml b/azure-pipelines-templates/download-ccache.yml new file mode 100644 index 0000000000..d47968a50e --- /dev/null +++ b/azure-pipelines-templates/download-ccache.yml @@ -0,0 +1,33 @@ +# Copyright (c) .NET Foundation and Contributors +# See LICENSE file in the project root for full license information. + +steps: + - task: Cache@2 + displayName: "Cache ccache" + inputs: + key: "ccache | 4.10.2" + path: 'C:\Program Files\ccache' + cacheHitVar: CCACHE_CACHE_RESTORED + + - task: PowerShell@2 + displayName: Downloading Ccache + condition: ne(variables.CCACHE_CACHE_RESTORED, 'true') + inputs: + targetType: "inline" + script: | + $url = "https://github.com/ccache/ccache/releases/download/v4.10.2/ccache-4.10.2-windows-x86_64.zip" + $output = "$(Agent.TempDirectory)\ccache.zip" + (New-Object Net.WebClient).DownloadFile($url, $output) + errorActionPreference: "stop" + failOnStderr: true + + - task: ExtractFiles@1 + displayName: Install Ccache + condition: ne(variables.CCACHE_CACHE_RESTORED, 'true') + inputs: + archiveFilePatterns: '$(Agent.TempDirectory)\ccache.zip' + destinationFolder: '$(Agent.TempDirectory)\ccache' + + - script: echo "##vso[task.prependpath]$(Agent.TempDirectory)\ccache" + displayName: Add Ccache to PATH + condition: succeeded() diff --git a/azure-pipelines.yml b/azure-pipelines.yml index dd0d0be434..04406bd8fc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -414,6 +414,7 @@ jobs: REVISION: $[counter('STM32_1_10_0_versioncounter', 0)] HelperPackageVersion: $[counter('HelperPackageVersioncounter', 0)] TargetPlatform: "stm32" + CCACHE_DIR: $(Build.SourcesDirectory)/nf-interpreter/.ccache steps: - template: azure-pipelines-templates/build-preparations.yml @@ -422,6 +423,7 @@ jobs: - template: azure-pipelines-templates/download-install-ninja.yml - template: azure-pipelines-templates/download-srecord.yml - template: azure-pipelines-templates/download-hexdfu.yml + - template: azure-pipelines-templates/download-ccache.yml - template: azure-pipelines-templates/build-chibios-stm32-targets.yml - template: azure-pipelines-templates/pack-publish-artifacts.yml - template: azure-pipelines-templates/publish-cloudsmith.yml @@ -563,6 +565,8 @@ jobs: # creates a counter and assigns it to the revision variable REVISION: $[counter('ESP32_1_10_0_versioncounter', 0)] IDF_PATH: "D:/a/1/s/esp-idf" + IDF_CCACHE_ENABLE: "1" + CCACHE_DIR: $(Build.SourcesDirectory)/nf-interpreter/.ccache PIP_CACHE_DIR: $(Pipeline.Workspace)/.pip TargetPlatform: "esp32" @@ -645,6 +649,7 @@ jobs: REVISION: $[counter('NXP_1_10_0_versioncounter', 0)] GIT_LFS_SKIP_SMUDGE: 1 TargetPlatform: "freertos" + CCACHE_DIR: $(Build.SourcesDirectory)/nf-interpreter/.ccache steps: - template: azure-pipelines-templates/build-preparations.yml @@ -652,6 +657,7 @@ jobs: - template: azure-pipelines-templates/download-install-arm-gcc-toolchain.yml - template: azure-pipelines-templates/download-install-ninja.yml - template: azure-pipelines-templates/download-srecord.yml + - template: azure-pipelines-templates/download-ccache.yml - template: azure-pipelines-templates/build-freertos-nxp-targets.yml - template: azure-pipelines-templates/pack-publish-artifacts.yml - template: azure-pipelines-templates/publish-cloudsmith.yml @@ -723,12 +729,14 @@ jobs: REVISION: $[counter('TI_1_10_0_versioncounter', 0)] HelperPackageVersion: $[counter('HelperPackageVersioncounter', 0)] TargetPlatform: "ti_simplelink" + CCACHE_DIR: $(Build.SourcesDirectory)/nf-interpreter/.ccache steps: - template: azure-pipelines-templates/build-preparations.yml - template: azure-pipelines-templates/nb-gitversioning.yml - template: azure-pipelines-templates/download-install-arm-gcc-toolchain.yml - template: azure-pipelines-templates/download-install-ninja.yml + - template: azure-pipelines-templates/download-ccache.yml - template: azure-pipelines-templates/build-ti-simplelink-targets.yml - template: azure-pipelines-templates/pack-publish-artifacts.yml - template: azure-pipelines-templates/publish-cloudsmith.yml @@ -794,6 +802,7 @@ jobs: REVISION: $[counter('AZURERTOS_1_10_0_versioncounter', 0)] HelperPackageVersion: $[counter('HelperPackageVersioncounter', 0)] TargetPlatform: "azure_rtos" + CCACHE_DIR: $(Build.SourcesDirectory)/nf-interpreter/.ccache steps: - template: azure-pipelines-templates/build-preparations.yml @@ -802,6 +811,7 @@ jobs: - template: azure-pipelines-templates/download-install-ninja.yml - template: azure-pipelines-templates/download-hexdfu.yml - template: azure-pipelines-templates/download-srecord.yml + - template: azure-pipelines-templates/download-ccache.yml - template: azure-pipelines-templates/build-azurertos-targets.yml - template: azure-pipelines-templates/pack-publish-artifacts.yml - template: azure-pipelines-templates/publish-cloudsmith.yml