Skip to content

Commit

Permalink
Publish VCRT files (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne authored Apr 12, 2023
1 parent aba7ac6 commit b0aa1f0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ resources:
options: --user 0:0 --cap-add SYS_ADMIN

jobs:
- job: win32_x64_VCRT
pool:
vmImage: 'windows-latest'
steps:
- template: publishVCRT.yml

- job: win32_x64
pool:
vmImage: 'windows-latest'
Expand Down Expand Up @@ -184,6 +190,7 @@ jobs:
vmImage: 'ubuntu-latest'
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
dependsOn:
- win32_x64_VCRT
- win32_x64
- win32_ia32
- darwin_x64
Expand Down
24 changes: 24 additions & 0 deletions build/publishVCRT.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
steps:
- bash: |
cp 'C:/Windows/System32/msvcp140.dll' '$(Build.ArtifactStagingDirectory)/msvcp140.dll'
cp 'C:/Windows/System32/vcruntime140.dll' '$(Build.ArtifactStagingDirectory)/vcruntime140.dll'
cp 'C:/Windows/System32/vcruntime140_1.dll' '$(Build.ArtifactStagingDirectory)/vcruntime140_1.dll'
displayName: Copy files

- task: PublishPipelineArtifact@0
displayName: 'Publish Pipeline Artifact'
inputs:
artifactName: win32_x64_msvcp140.dll
targetPath: $(Build.ArtifactStagingDirectory)/msvcp140.dll

- task: PublishPipelineArtifact@0
displayName: 'Publish Pipeline Artifact'
inputs:
artifactName: win32_x64_vcruntime140.dll
targetPath: $(Build.ArtifactStagingDirectory)/vcruntime140.dll

- task: PublishPipelineArtifact@0
displayName: 'Publish Pipeline Artifact'
inputs:
artifactName: win32_x64_vcruntime140_1.dll
targetPath: $(Build.ArtifactStagingDirectory)/vcruntime140_1.dll

0 comments on commit b0aa1f0

Please sign in to comment.