insider-spearhead.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. name: insider-spearhead
  2. on:
  3. workflow_dispatch:
  4. schedule:
  5. - cron: '30 0 * * *'
  6. jobs:
  7. build:
  8. runs-on: [self-hosted, macOS, ARM64]
  9. env:
  10. OS_NAME: 'osx'
  11. VSCODE_ARCH: 'arm64'
  12. VSCODE_LATEST: 'yes'
  13. VSCODE_QUALITY: 'insider'
  14. steps:
  15. - uses: actions/checkout@v3
  16. with:
  17. ref: insider
  18. - name: Setup Node.js environment
  19. uses: actions/setup-node@v3
  20. with:
  21. node-version: 16
  22. - name: Clone VSCode repo
  23. run: . get_repo.sh
  24. - name: Check existing VSCodium tags/releases
  25. env:
  26. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  27. run: . check_tags.sh
  28. - name: Compute cache key
  29. id: yarnCacheKey
  30. run: echo "::set-output name=value::$(node build/azure-pipelines/computeYarnCacheKey.js)"
  31. if: env.SHOULD_BUILD == 'yes'
  32. - name: Get yarn cache directory path
  33. id: yarnCacheDirPath
  34. run: echo "::set-output name=dir::$(yarn cache dir)"
  35. if: env.SHOULD_BUILD == 'yes'
  36. - name: Cache yarn directory
  37. uses: actions/cache@v3
  38. with:
  39. path: ${{ steps.yarnCacheDirPath.outputs.dir }}
  40. key: ${{ env.OS_NAME }}-${{ env.VSCODE_ARCH }}-yarnCacheDir-${{ steps.yarnCacheKey.outputs.value }}
  41. restore-keys: ${{ env.OS_NAME }}-${{ env.VSCODE_ARCH }}-yarnCacheDir-
  42. if: env.SHOULD_BUILD == 'yes'
  43. - name: Build
  44. env:
  45. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  46. run: ./build.sh
  47. if: env.SHOULD_BUILD == 'yes'
  48. - name: Update insider.json
  49. run: ./update_insider.sh
  50. env:
  51. GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
  52. GITHUB_USERNAME: ${{ github.repository_owner }}
  53. if: env.SHOULD_BUILD == 'yes'