fix: remote dependencies (#1324)

This commit is contained in:
Baptiste Augrain 2022-11-10 18:18:26 +01:00 committed by GitHub
parent 51e8c96447
commit 59389da1b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 4 deletions

View File

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

View File

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

1
.gitignore vendored
View File

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

View File

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

View File

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