mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
ci: increase Node.js rss memory limits during desktop clients building (#11345)
This commit is contained in:
19
.github/workflows/release-desktop.yml
vendored
19
.github/workflows/release-desktop.yml
vendored
@@ -142,11 +142,19 @@ jobs:
|
|||||||
# some flatpak deps need git protocol.file.allow
|
# some flatpak deps need git protocol.file.allow
|
||||||
git config --global protocol.file.allow always
|
git config --global protocol.file.allow always
|
||||||
|
|
||||||
|
- name: Remove nbstore node_modules
|
||||||
|
shell: bash
|
||||||
|
# node_modules of nbstore is not needed for building, and it will make the build process out of memory
|
||||||
|
run: |
|
||||||
|
rm -rf packages/frontend/apps/electron/node_modules/@affine/nbstore/node_modules/@blocksuite
|
||||||
|
rm -rf packages/frontend/apps/electron/node_modules/@affine/native/node_modules
|
||||||
|
|
||||||
- name: make
|
- name: make
|
||||||
run: yarn affine @affine/electron make --platform=${{ matrix.spec.platform }} --arch=${{ matrix.spec.arch }}
|
run: yarn affine @affine/electron make --platform=${{ matrix.spec.platform }} --arch=${{ matrix.spec.arch }}
|
||||||
env:
|
env:
|
||||||
SKIP_WEB_BUILD: 1
|
SKIP_WEB_BUILD: 1
|
||||||
HOIST_NODE_MODULES: 1
|
HOIST_NODE_MODULES: 1
|
||||||
|
NODE_OPTIONS: --max-old-space-size=14384
|
||||||
|
|
||||||
- name: signing DMG
|
- name: signing DMG
|
||||||
if: ${{ matrix.spec.platform == 'darwin' }}
|
if: ${{ matrix.spec.platform == 'darwin' }}
|
||||||
@@ -240,11 +248,20 @@ jobs:
|
|||||||
- name: Build Desktop Layers
|
- name: Build Desktop Layers
|
||||||
run: yarn affine @affine/electron build
|
run: yarn affine @affine/electron build
|
||||||
|
|
||||||
|
- name: Remove nbstore node_modules
|
||||||
|
shell: bash
|
||||||
|
# node_modules of nbstore is not needed for building, and it will make the build process out of memory
|
||||||
|
run: |
|
||||||
|
rm -rf packages/frontend/apps/electron/node_modules/@affine/nbstore/node_modules/@blocksuite
|
||||||
|
rm -rf packages/frontend/apps/electron/node_modules/@affine/native/node_modules
|
||||||
|
|
||||||
- name: package
|
- name: package
|
||||||
run: yarn affine @affine/electron package --platform=${{ matrix.spec.platform }} --arch=${{ matrix.spec.arch }}
|
run: |
|
||||||
|
yarn affine @affine/electron package --platform=${{ matrix.spec.platform }} --arch=${{ matrix.spec.arch }}
|
||||||
env:
|
env:
|
||||||
SKIP_WEB_BUILD: 1
|
SKIP_WEB_BUILD: 1
|
||||||
HOIST_NODE_MODULES: 1
|
HOIST_NODE_MODULES: 1
|
||||||
|
NODE_OPTIONS: --max-old-space-size=14384
|
||||||
|
|
||||||
- name: get all files to be signed
|
- name: get all files to be signed
|
||||||
id: get_files_to_be_signed
|
id: get_files_to_be_signed
|
||||||
|
|||||||
Reference in New Issue
Block a user