win32-build.yml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. steps:
  2. - task: NodeTool@0
  3. inputs:
  4. versionSpec: '8.x'
  5. - script: |
  6. choco install jq
  7. displayName: 'install jq from choco'
  8. - task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
  9. displayName: 'Install Yarn'
  10. - task: UsePythonVersion@0
  11. displayName: 'Use Python 2.x'
  12. inputs:
  13. versionSpec: 2.x
  14. - task: ShellScript@2
  15. displayName: 'get VSCode sources'
  16. inputs:
  17. scriptPath: get_repo.sh
  18. - powershell: |
  19. $LATEST_MS_TAG="$(git -C vscode describe --tags)"
  20. Write-Host "##vso[task.setvariable variable=LATEST_MS_TAG]$LATEST_MS_TAG"
  21. displayName: 'set env LATEST_MS_TAG'
  22. - task: PowerShell@2
  23. inputs:
  24. filePath: 'check_tags.ps1'
  25. env:
  26. MAPPED_GITHUB_TOKEN: $(GITHUB_TOKEN)
  27. - script: |
  28. git -C vscode status
  29. displayName: 'vscode status'
  30. - powershell: |
  31. bash ./build.sh
  32. displayName: 'go build it!'
  33. - bash: |
  34. if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-$(BUILDARCH)\\system-setup\\VSCodeSetup.exe VSCodiumSetup-$(BUILDARCH)-${LATEST_MS_TAG}.exe; fi
  35. displayName: 'move the system setup'
  36. - bash: |
  37. if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-$(BUILDARCH)\\user-setup\\VSCodeSetup.exe VSCodiumUserSetup-$(BUILDARCH)-${LATEST_MS_TAG}.exe; fi
  38. displayName: 'move the user setup'
  39. - bash: |
  40. if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-$(BUILDARCH)\\archive\\VSCode-win32-$(BUILDARCH).zip VSCodium-win32-$(BUILDARCH)-${LATEST_MS_TAG}.zip; fi
  41. displayName: 'move the zip folder'
  42. - powershell: |
  43. Get-FileHash VSCodiumSetup-$(BUILDARCH)-$(LATEST_MS_TAG).exe -Algorithm SHA256 | Format-List > VSCodiumSetup-$(BUILDARCH)-$(LATEST_MS_TAG).sha256
  44. Get-FileHash VSCodiumUserSetup-$(BUILDARCH)-$(LATEST_MS_TAG).exe -Algorithm SHA256 | Format-List > VSCodiumUserSetup-$(BUILDARCH)-$(LATEST_MS_TAG).sha256
  45. Get-FileHash VSCodium-win32-$(BUILDARCH)-$(LATEST_MS_TAG).zip -Algorithm SHA256 | Format-List > VSCodium-win32-$(BUILDARCH)-$(LATEST_MS_TAG).sha256
  46. displayName: 'compute sums'
  47. - task: CopyFiles@2
  48. inputs:
  49. contents: |
  50. VSCodium*.zip
  51. VSCodiumUserSetup*.exe
  52. VSCodiumSetup*.exe
  53. *.sha256
  54. targetFolder: $(Build.ArtifactStagingDirectory)
  55. condition: eq(variables['SHOULD_BUILD'], 'yes')
  56. displayName: 'copy artifacts to staging directory'
  57. - task: PublishBuildArtifacts@1
  58. displayName: 'Publish artifacts'
  59. condition: eq(variables['SHOULD_BUILD'], 'yes')
  60. inputs:
  61. PathtoPublish: $(Build.ArtifactStagingDirectory)
  62. ArtifactName: 'everything'