Skip to content

Commit ee07b5a

Browse files
committed
Work CI-CD
- Fix missing cmake template when building in AZDO without community targets. ***NO_CI***
1 parent 25bbb20 commit ee07b5a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

azure-pipelines-templates/build-preparations.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Copyright (c) .NET Foundation and Contributors
22
# See LICENSE file in the project root for full license information.
33

4+
parameters:
5+
- name: repoDirectory
6+
type: string
7+
default: $(Build.SourcesDirectory)
8+
49
steps:
510

611
- task: PowerShell@2
@@ -24,3 +29,12 @@ steps:
2429
inputs:
2530
targetType: 'inline'
2631
script: New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
32+
33+
- task: PowerShell@2
34+
displayName: Add dummy cmake presets
35+
condition: ne(variables['Build.Repository.Name'], 'nanoframework/nf-Community-Targets')
36+
inputs:
37+
workingDirectory: ${{ parameters.repoDirectory }}\targets-community
38+
targetType: 'inline'
39+
script: |
40+
New-Item -Path . -Name "CMakePresets.json" -ItemType "file" -Value "{`n""version"": 4,`n""include"": []`n}"

azure-pipelines.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,8 @@ jobs:
465465
fetchDepth: 1
466466

467467
- template: azure-pipelines-templates/build-preparations.yml
468+
parameters:
469+
repoDirectory: '$(Build.SourcesDirectory)\nf-interpreter'
468470
- template: azure-pipelines-templates/nb-gitversioning.yml
469471
parameters:
470472
repoDirectory: '$(Build.SourcesDirectory)\nf-interpreter'

0 commit comments

Comments
 (0)