Skip to content

Commit

Permalink
Work CI-CD
Browse files Browse the repository at this point in the history
- Fix missing cmake template when building in AZDO without community targets.

***NO_CI***
  • Loading branch information
josesimoes committed Feb 15, 2023
1 parent 25bbb20 commit ee07b5a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions azure-pipelines-templates/build-preparations.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Copyright (c) .NET Foundation and Contributors
# See LICENSE file in the project root for full license information.

parameters:
- name: repoDirectory
type: string
default: $(Build.SourcesDirectory)

steps:

- task: PowerShell@2
Expand All @@ -24,3 +29,12 @@ steps:
inputs:
targetType: 'inline'
script: New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force

- task: PowerShell@2
displayName: Add dummy cmake presets
condition: ne(variables['Build.Repository.Name'], 'nanoframework/nf-Community-Targets')
inputs:
workingDirectory: ${{ parameters.repoDirectory }}\targets-community
targetType: 'inline'
script: |
New-Item -Path . -Name "CMakePresets.json" -ItemType "file" -Value "{`n""version"": 4,`n""include"": []`n}"
2 changes: 2 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,8 @@ jobs:
fetchDepth: 1

- template: azure-pipelines-templates/build-preparations.yml
parameters:
repoDirectory: '$(Build.SourcesDirectory)\nf-interpreter'
- template: azure-pipelines-templates/nb-gitversioning.yml
parameters:
repoDirectory: '$(Build.SourcesDirectory)\nf-interpreter'
Expand Down

0 comments on commit ee07b5a

Please sign in to comment.