linux.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. name: linux_build
  2. on:
  3. schedule:
  4. - cron: '0 0 * * *'
  5. push:
  6. pull_request:
  7. branches: [ master ]
  8. jobs:
  9. linux:
  10. runs-on: ubuntu-latest
  11. container:
  12. image: ${{ matrix.image }}
  13. env:
  14. OS_NAME: 'linux'
  15. VSCODE_ARCH: ${{ matrix.vscode_arch }}
  16. strategy:
  17. fail-fast: false
  18. matrix:
  19. vscode_arch: [x64, arm64, armhf]
  20. include:
  21. - vscode_arch: x64
  22. npm_arch: x64
  23. image: vscodium/vscodium-linux-build-agent:bionic-x64
  24. - vscode_arch: arm64
  25. npm_arch: arm64
  26. image: vscodium/vscodium-linux-build-agent:stretch-arm64
  27. - vscode_arch: armhf
  28. npm_arch: armv7l
  29. image: vscodium/vscodium-linux-build-agent:stretch-armhf
  30. steps:
  31. - uses: actions/checkout@v2
  32. - name: Setup Node.js environment
  33. uses: actions/setup-node@v1
  34. with:
  35. node-version: 12.14.1
  36. - name: Install Yarn
  37. run: npm install -g yarn
  38. - name: Clone VSCode repo
  39. run: ./get_repo.sh
  40. - name: Check existing VSCodium tags/releases
  41. env:
  42. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  43. run: ./check_tags.sh
  44. - name: Build
  45. env:
  46. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  47. npm_config_arch: ${{ matrix.npm_arch }}
  48. run: ./build.sh
  49. if: env.SHOULD_BUILD == 'yes'
  50. - name: Zip release
  51. run: |
  52. cd VSCode-linux-${VSCODE_ARCH}
  53. tar czf ../VSCodium-linux-${VSCODE_ARCH}-${LATEST_MS_TAG}.tar.gz .
  54. if: env.SHOULD_BUILD == 'yes'
  55. - name: Generate shasums
  56. run: ./sum.sh
  57. if: env.SHOULD_BUILD == 'yes'
  58. - name: Release
  59. uses: softprops/action-gh-release@v1
  60. if: env.SHOULD_BUILD == 'yes'
  61. with:
  62. tag_name: ${{ env.LATEST_MS_TAG }}
  63. files: |
  64. ./*.sha256
  65. ./*.zip
  66. ./*.tar.gz
  67. ./*.deb
  68. ./*.rpm
  69. ./*.AppImage
  70. ./*.AppImage.zsync
  71. env:
  72. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  73. - name: Update versions repo
  74. if: env.SHOULD_BUILD == 'yes'
  75. run: ./update_version.sh
  76. env:
  77. GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
  78. GITHUB_USERNAME: ${{ github.repository_owner }}