Skip to content

Commit a02925b

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

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

azure-pipelines-templates/build-preparations.yml

+9
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,12 @@ steps:
2424
inputs:
2525
targetType: 'inline'
2626
script: New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
27+
28+
- task: PowerShell@2
29+
displayName: Add dummy cmake presets
30+
condition: ne(variables['Build.Repository.Name'], 'nanoframework/nf-Community-Targets')
31+
inputs:
32+
workingDirectory: $(Build.SourcesDirectory)\targets-community
33+
targetType: 'inline'
34+
script: |
35+
New-Item -Path . -Name "CMakePresets.json" -ItemType "file" -Value "{`n""version"": 4,`n""include"": []`n}"

0 commit comments

Comments
 (0)