Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

ci: increase Node.js rss memory limits during desktop clients building (#11345)

Brooooooklync94f782da216
diff --git a/.github/workflows/release-desktop.yml b/.github/workflows/release-desktop.yml
index 22ee0deb17..52c0c165d0 100644
--- a/.github/workflows/release-desktop.yml
+++ b/.github/workflows/release-desktop.yml
@@ -142,11 +142,19 @@ jobs:
# some flatpak deps need git protocol.file.allow
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
run: yarn affine @affine/electron make --platform=${{ matrix.spec.platform }} --arch=${{ matrix.spec.arch }}
env:
SKIP_WEB_BUILD: 1
HOIST_NODE_MODULES: 1
+ NODE_OPTIONS: --max-old-space-size=14384
- name: signing DMG
if: ${{ matrix.spec.platform == 'darwin' }}
@@ -240,11 +248,20 @@ jobs:
- name: Build Desktop Layers
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
- 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:
SKIP_WEB_BUILD: 1
HOIST_NODE_MODULES: 1
+ NODE_OPTIONS: --max-old-space-size=14384
- name: get all files to be signed
id: get_files_to_be_signed