Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion azure-pipelines-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ jobs:
- 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-srecord.yml
- template: azure-pipelines-templates/download-hexdfu.yml
- template: azure-pipelines-templates/build-chibios-stm32-targets.yml
Expand Down Expand Up @@ -670,7 +671,6 @@ jobs:
steps:
- template: azure-pipelines-templates/build-preparations.yml
- template: azure-pipelines-templates/nb-gitversioning.yml
- template: azure-pipelines-templates/download-install-cmake.yml
- template: azure-pipelines-templates/download-install-arm-gcc-toolchain.yml
- template: azure-pipelines-templates/download-install-ninja.yml
- template: azure-pipelines-templates/build-ti-simplelink-targets.yml
Expand Down
27 changes: 3 additions & 24 deletions azure-pipelines-templates/download-install-ninja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,7 @@ parameters:
default: $(Build.SourcesDirectory)

steps:
- task: Cache@2
inputs:
key: "1-12-1 | ninjaKey"
restoreKeys: ninjaKey
path: $(Agent.TempDirectory)/ninja
cacheHitVar: NINJA_CACHE_RESTORED
displayName: Cache Ninja

- task: PowerShell@2
condition: ne(variables.NINJA_CACHE_RESTORED, 'true')
displayName: Download Ninja
inputs:
targetType: "filePath"
filePath: '${{ parameters.repoDirectory }}\install-scripts\install-ninja.ps1'
failOnStderr: true

- task: ExtractFiles@1
inputs:
archiveFilePatterns: '$(Agent.TempDirectory)\ninja.zip'
destinationFolder: '$(Agent.TempDirectory)\ninja'
condition: ne(variables.NINJA_CACHE_RESTORED, 'true')
displayName: Extract Ninja

- script: echo "##vso[task.prependpath]$(Agent.TempDirectory)\ninja"
displayName: Tweak PATH with Ninja
- script: |
ninja --version
displayName: Ninja Version Check
4 changes: 3 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ jobs:
- 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-srecord.yml
- template: azure-pipelines-templates/download-hexdfu.yml
- template: azure-pipelines-templates/build-chibios-stm32-targets.yml
Expand Down Expand Up @@ -618,6 +619,7 @@ jobs:
- 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-srecord.yml
- template: azure-pipelines-templates/build-freertos-nxp-targets.yml
- template: azure-pipelines-templates/pack-publish-artifacts.yml
Expand Down Expand Up @@ -694,7 +696,6 @@ jobs:
steps:
- template: azure-pipelines-templates/build-preparations.yml
- template: azure-pipelines-templates/nb-gitversioning.yml
- template: azure-pipelines-templates/download-install-cmake.yml
- template: azure-pipelines-templates/download-install-arm-gcc-toolchain.yml
- template: azure-pipelines-templates/download-install-ninja.yml
- template: azure-pipelines-templates/build-ti-simplelink-targets.yml
Expand Down Expand Up @@ -767,6 +768,7 @@ jobs:
- 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-hexdfu.yml
- template: azure-pipelines-templates/download-srecord.yml
- template: azure-pipelines-templates/build-azurertos-targets.yml
Expand Down
Loading