Skip to content

Commit 10f4bf4

Browse files
committed
Work CI-CD
- Publishing nanoCLR build artifact is now performed at build job. ***NO_CI***
1 parent 8fa1168 commit 10f4bf4

File tree

2 files changed

+12
-21
lines changed

2 files changed

+12
-21
lines changed

azure-pipelines-templates/publish-nanoclr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ steps:
7272
7373
cloudsmith push raw net-nanoframework/$(CLOUDSMITH_REPO) $(Build.ArtifactStagingDirectory)\WIN32_nanoCLR\nanoFramework.nanoCLR.exe --name WIN32_nanoCLR --version $(WINCLR_PACKAGE_VERSION) -k $(CLOUDSMITH_KEY)
7474
75-
cloudsmith push raw net-nanoframework/$(CLOUDSMITH_REPO) $(Build.ArtifactStagingDirectory)\WIN_DLL_nanoCLR\nanoFramework.nanoCLR.dll --name WIN_DLL_nanoCLR --version $(WINCLR_PACKAGE_VERSION) -k $(CLOUDSMITH_KEY)
75+
cloudsmith push raw net-nanoframework/$(CLOUDSMITH_REPO) $(Build.ArtifactStagingDirectory)\nanoclr\nanoFramework.nanoCLR.dll --name WIN_DLL_nanoCLR --version $(WINCLR_PACKAGE_VERSION) -k $(CLOUDSMITH_KEY)
7676
7777
errorActionPreference: "stop"
7878
failOnStderr: false

azure-pipelines.yml

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,13 +1021,20 @@ jobs:
10211021
condition: succeeded()
10221022
displayName: Adding nanoCLR DLL to deployable artifacts
10231023
inputs:
1024-
sourceFolder: $(Build.SourcesDirectory)
1025-
Contents: |
1026-
**\nanoFramework.nanoCLR.dll
1027-
TargetFolder: '$(Build.ArtifactStagingDirectory)\WIN_DLL_nanoCLR'
1024+
SourceFolder: "nf-interpreter/build/bin/Release"
1025+
Contents: "nanoFramework.nanoCLR.dll"
1026+
TargetFolder: "$(Build.ArtifactStagingDirectory)/nanoclr"
10281027
flattenFolders: true
10291028
ignoreMakeDirErrors: true
10301029

1030+
- task: PublishPipelineArtifact@1
1031+
condition: succeeded()
1032+
displayName: Publish nanoclr
1033+
inputs:
1034+
targetPath: "$(Build.ArtifactStagingDirectory)/nanoclr"
1035+
artifactName: nanoclr_dll
1036+
artifactType: pipeline
1037+
10311038
- pwsh: |
10321039
.\sign code azure-key-vault `
10331040
"**/*.nupkg" `
@@ -1228,22 +1235,6 @@ jobs:
12281235
eq(variables['System.PullRequest.PullRequestId'], '')
12291236
)
12301237
1231-
- task: CopyFiles@2
1232-
condition: succeeded()
1233-
displayName: Copy nanoclr
1234-
inputs:
1235-
SourceFolder: "nf-interpreter/build/bin/Release"
1236-
Contents: "nanoFramework.nanoCLR.dll"
1237-
TargetFolder: "$(Build.ArtifactStagingDirectory)/nanoclr"
1238-
1239-
- task: PublishPipelineArtifact@1
1240-
condition: succeeded()
1241-
displayName: Publish nanoclr
1242-
inputs:
1243-
targetPath: "$(Build.ArtifactStagingDirectory)/nanoclr"
1244-
artifactName: nanoclr_cli
1245-
artifactType: pipeline
1246-
12471238
# push NuGet packages to NuGet (always happens when building from main, except on PR builds)
12481239
- task: NuGetCommand@2
12491240
condition: >-

0 commit comments

Comments
 (0)