浏览代码

ci: build reh dependencies

Baptiste Augrain 2 年之前
父节点
当前提交
5fc33c7681
共有 1 个文件被更改,包括 17 次插入7 次删除
  1. 17 7
      .github/workflows/insider-linux.yml

+ 17 - 7
.github/workflows/insider-linux.yml

@@ -30,6 +30,7 @@ jobs:
       RELEASE_VERSION: ${{ env.RELEASE_VERSION }}
       RELEASE_VERSION: ${{ env.RELEASE_VERSION }}
       SHOULD_BUILD: ${{ env.SHOULD_BUILD }}
       SHOULD_BUILD: ${{ env.SHOULD_BUILD }}
       SHOULD_DEPLOY: ${{ env.SHOULD_DEPLOY }}
       SHOULD_DEPLOY: ${{ env.SHOULD_DEPLOY }}
+      VSCODE_QUALITY: ${{ env.VSCODE_QUALITY }}
 
 
     steps:
     steps:
       - uses: actions/checkout@v3
       - uses: actions/checkout@v3
@@ -49,26 +50,28 @@ jobs:
         with:
         with:
           name: repositories
           name: repositories
           path: .
           path: .
-        if: needs.check.outputs.SHOULD_BUILD == 'yes' || needs.check.outputs.SHOULD_DEPLOY == 'yes'
+        if: env.SHOULD_BUILD == 'yes' || env.SHOULD_DEPLOY == 'yes'
 
 
   dependencies:
   dependencies:
     needs: check
     needs: check
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     container:
     container:
       image: ${{ matrix.image }}
       image: ${{ matrix.image }}
+      env:
+        VSCODE_QUALITY: ${{ needs.check.outputs.VSCODE_QUALITY }}
     strategy:
     strategy:
       fail-fast: false
       fail-fast: false
       matrix:
       matrix:
         include:
         include:
         - vscode_arch: x64
         - vscode_arch: x64
-          npm_arch: x64
           image: vscodium/vscodium-linux-build-agent:centos7-devtoolset8-x64
           image: vscodium/vscodium-linux-build-agent:centos7-devtoolset8-x64
         - vscode_arch: arm64
         - vscode_arch: arm64
-          npm_arch: arm64
-          image: vscodium/vscodium-linux-build-agent:centos7-devtoolset8-arm64
     if: needs.check.outputs.SHOULD_BUILD == 'yes' || needs.check.outputs.SHOULD_DEPLOY == 'yes'
     if: needs.check.outputs.SHOULD_BUILD == 'yes' || needs.check.outputs.SHOULD_DEPLOY == 'yes'
 
 
     steps:
     steps:
+      - uses: docker/setup-qemu-action@v2
+        if: matrix.vscode_arch == 'arm64'
+
       - name: Setup Node.js environment
       - name: Setup Node.js environment
         uses: actions/setup-node@v3
         uses: actions/setup-node@v3
         with:
         with:
@@ -82,10 +85,17 @@ jobs:
         with:
         with:
           name: repositories
           name: repositories
 
 
-      - name: Install remote dependencies
+      - name: Install remote dependencies (x64)
         env:
         env:
-          npm_config_arch: ${{ matrix.npm_arch }}
+          npm_config_arch: x64
         run: ./install_remote_dependencies.sh
         run: ./install_remote_dependencies.sh
+        if: matrix.vscode_arch == 'x64'
+
+      - name: Install remote dependencies (arm64)
+        script: |
+          set -e
+          docker run -e VSCODE_QUALITY -e GITHUB_TOKEN -v $(pwd):/root/vscodium vscodium/vscodium-linux-build-agent:centos7-devtoolset8-arm64 /root/vscodium/install_remote_dependencies.sh
+        if: matrix.vscode_arch == 'arm64'
 
 
       - name: Save remote dependencies
       - name: Save remote dependencies
         uses: actions/upload-artifact@v3
         uses: actions/upload-artifact@v3
@@ -109,7 +119,7 @@ jobs:
         SHOULD_DEPLOY: ${{ needs.check.outputs.SHOULD_DEPLOY }}
         SHOULD_DEPLOY: ${{ needs.check.outputs.SHOULD_DEPLOY }}
         VERSIONS_REPOSITORY: ${{ github.repository_owner }}/versions
         VERSIONS_REPOSITORY: ${{ github.repository_owner }}/versions
         VSCODE_ARCH: ${{ matrix.vscode_arch }}
         VSCODE_ARCH: ${{ matrix.vscode_arch }}
-        VSCODE_QUALITY: insider
+        VSCODE_QUALITY: ${{ needs.check.outputs.VSCODE_QUALITY }}
     strategy:
     strategy:
       fail-fast: false
       fail-fast: false
       matrix:
       matrix: