Baptiste Augrain 2 лет назад
Родитель
Сommit
59389da1b0

+ 1 - 2
.github/workflows/insider-linux.yml

@@ -108,7 +108,7 @@ jobs:
         uses: actions/upload-artifact@v3
         with:
           name: remote-dependencies-${{ matrix.vscode_arch }}
-          path: ./vscode/remote/node_modules
+          path: ./remote-dependencies.tar
           retention-days: ${{ needs.check.outputs.SHOULD_DEPLOY == 'yes' && 30 || 1 }}
 
   build:
@@ -175,7 +175,6 @@ jobs:
         uses: actions/download-artifact@v3
         with:
           name: remote-dependencies-${{ matrix.vscode_arch }}
-          path: ./vscode/remote/node_modules
         if: env.SHOULD_BUILD == 'yes' && matrix.vscode_arch == 'x64'
 
       - name: Build

+ 1 - 2
.github/workflows/stable-linux.yml

@@ -102,7 +102,7 @@ jobs:
         uses: actions/upload-artifact@v3
         with:
           name: remote-dependencies-${{ matrix.vscode_arch }}
-          path: ./vscode/remote/node_modules
+          path: ./remote-dependencies.tar
           retention-days: ${{ needs.check.outputs.SHOULD_DEPLOY == 'yes' && 30 || 1 }}
 
   build:
@@ -167,7 +167,6 @@ jobs:
         uses: actions/download-artifact@v3
         with:
           name: remote-dependencies-${{ matrix.vscode_arch }}
-          path: ./vscode/remote/node_modules
         if: env.SHOULD_BUILD == 'yes' && matrix.vscode_arch == 'x64'
 
       - name: Build

+ 1 - 0
.gitignore

@@ -13,3 +13,4 @@ build/linux/appimage/VSCodium
 build/windows/msi/releasedir
 build/windows/msi/Files*.wxs
 build/windows/msi/Files*.wixobj
+remote-dependencies.tar

+ 4 - 0
build.sh

@@ -2,6 +2,10 @@
 
 set -ex
 
+if [ -f  "./remote-dependencies.tar" ]; then
+  tar -xf ./remote-dependencies.tar ./vscode/remote/node_modules
+fi
+
 . version.sh
 
 if [[ "${SHOULD_BUILD}" == "yes" ]]; then

+ 2 - 0
install_remote_dependencies.sh

@@ -7,3 +7,5 @@ cd vscode || { echo "'vscode' dir not found"; exit 1; }
 yarn --cwd remote --frozen-lockfile --check-files
 
 cd ..
+
+tar -cf remote-dependencies.tar ./vscode/remote/node_modules