Ver código fonte

ci: build reh dependencies

Baptiste Augrain 2 anos atrás
pai
commit
5fc33c7681
1 arquivos alterados com 17 adições e 7 exclusões
  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 }}
       SHOULD_BUILD: ${{ env.SHOULD_BUILD }}
       SHOULD_DEPLOY: ${{ env.SHOULD_DEPLOY }}
+      VSCODE_QUALITY: ${{ env.VSCODE_QUALITY }}
 
     steps:
       - uses: actions/checkout@v3
@@ -49,26 +50,28 @@ jobs:
         with:
           name: repositories
           path: .
-        if: needs.check.outputs.SHOULD_BUILD == 'yes' || needs.check.outputs.SHOULD_DEPLOY == 'yes'
+        if: env.SHOULD_BUILD == 'yes' || env.SHOULD_DEPLOY == 'yes'
 
   dependencies:
     needs: check
     runs-on: ubuntu-latest
     container:
       image: ${{ matrix.image }}
+      env:
+        VSCODE_QUALITY: ${{ needs.check.outputs.VSCODE_QUALITY }}
     strategy:
       fail-fast: false
       matrix:
         include:
         - vscode_arch: x64
-          npm_arch: x64
           image: vscodium/vscodium-linux-build-agent:centos7-devtoolset8-x64
         - 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'
 
     steps:
+      - uses: docker/setup-qemu-action@v2
+        if: matrix.vscode_arch == 'arm64'
+
       - name: Setup Node.js environment
         uses: actions/setup-node@v3
         with:
@@ -82,10 +85,17 @@ jobs:
         with:
           name: repositories
 
-      - name: Install remote dependencies
+      - name: Install remote dependencies (x64)
         env:
-          npm_config_arch: ${{ matrix.npm_arch }}
+          npm_config_arch: x64
         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
         uses: actions/upload-artifact@v3
@@ -109,7 +119,7 @@ jobs:
         SHOULD_DEPLOY: ${{ needs.check.outputs.SHOULD_DEPLOY }}
         VERSIONS_REPOSITORY: ${{ github.repository_owner }}/versions
         VSCODE_ARCH: ${{ matrix.vscode_arch }}
-        VSCODE_QUALITY: insider
+        VSCODE_QUALITY: ${{ needs.check.outputs.VSCODE_QUALITY }}
     strategy:
       fail-fast: false
       matrix: