windows.yml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. name: windows_build
  2. on:
  3. schedule:
  4. - cron: '0 0 * * *'
  5. push:
  6. pull_request:
  7. branches: [ master ]
  8. jobs:
  9. windows:
  10. runs-on: windows-2016
  11. env:
  12. VSCODE_ARCH: ${{ matrix.vscode_arch }}
  13. strategy:
  14. fail-fast: false
  15. matrix:
  16. vscode_arch: [x64, ia32, arm64]
  17. steps:
  18. - uses: actions/checkout@v2
  19. - name: Setup Node.js environment
  20. uses: actions/setup-node@v1
  21. with:
  22. node-version: 12.18.3
  23. - name: Install Yarn
  24. run: npm install -g yarn
  25. - name: Setup Python 2
  26. uses: actions/setup-python@v2
  27. with:
  28. python-version: '2.x'
  29. - name: Clone VSCode repo
  30. run: ./get_repo.sh
  31. shell: bash
  32. - name: Check existing VSCodium tags/releases
  33. env:
  34. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  35. run: ./check_tags.sh
  36. shell: bash
  37. - name: Build
  38. env:
  39. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  40. npm_config_arch: ${{ matrix.vscode_arch }}
  41. npm_config_target_arch: ${{ matrix.vscode_arch }}
  42. run: ./build.sh
  43. shell: bash
  44. if: env.SHOULD_BUILD == 'yes'
  45. - name: Move/rename build artifacts
  46. run: |
  47. mv vscode\\.build\\win32-${VSCODE_ARCH}\\system-setup\\VSCodeSetup.exe VSCodiumSetup-${VSCODE_ARCH}-${LATEST_MS_TAG}.exe
  48. mv vscode\\.build\\win32-${VSCODE_ARCH}\\user-setup\\VSCodeSetup.exe VSCodiumUserSetup-${VSCODE_ARCH}-${LATEST_MS_TAG}.exe
  49. mv vscode\\.build\\win32-${VSCODE_ARCH}\\archive\\VSCode-win32-${VSCODE_ARCH}.zip VSCodium-win32-${VSCODE_ARCH}-${LATEST_MS_TAG}.zip
  50. shell: bash
  51. if: env.SHOULD_BUILD == 'yes'
  52. - name: Generate shasums
  53. run: ./sum.sh
  54. shell: bash
  55. if: env.SHOULD_BUILD == 'yes'
  56. - name: Release
  57. uses: softprops/action-gh-release@v1
  58. if: env.SHOULD_BUILD == 'yes'
  59. with:
  60. tag_name: ${{ env.LATEST_MS_TAG }}
  61. files: |
  62. ./*.sha256
  63. ./VSCodium*.zip
  64. ./VSCodiumUserSetup*.exe
  65. ./VSCodiumSetup*.exe
  66. env:
  67. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  68. - name: Update versions repo
  69. if: env.SHOULD_BUILD == 'yes'
  70. run: ./update_version.sh
  71. shell: bash
  72. env:
  73. GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
  74. GITHUB_USERNAME: ${{ github.repository_owner }}