Skip to content

Commit 64e5e2f

Browse files
committed
fix: increase Node.js memory limit for CI builds
1 parent 3236fc7 commit 64e5e2f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,14 @@ jobs:
4444

4545
- name: Build
4646
run: npm run build
47+
env:
48+
NODE_OPTIONS: '--max-old-space-size=4096'
4749

4850
- name: Package Windows ${{ matrix.arch }}
4951
run: npx electron-builder --win --${{ matrix.arch }} -p never
5052
env:
5153
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
NODE_OPTIONS: '--max-old-space-size=4096'
5255

5356
- name: Upload artifacts
5457
uses: actions/upload-artifact@v4
@@ -94,11 +97,14 @@ jobs:
9497

9598
- name: Build
9699
run: npm run build
100+
env:
101+
NODE_OPTIONS: '--max-old-space-size=4096'
97102

98103
- name: Package macOS ${{ matrix.arch }}
99104
run: npx electron-builder --mac --${{ matrix.arch }} -p never
100105
env:
101106
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
107+
NODE_OPTIONS: '--max-old-space-size=4096'
102108

103109
- name: Upload artifacts
104110
uses: actions/upload-artifact@v4
@@ -143,11 +149,14 @@ jobs:
143149

144150
- name: Build
145151
run: npm run build
152+
env:
153+
NODE_OPTIONS: '--max-old-space-size=4096'
146154

147155
- name: Package Linux ${{ matrix.arch }}
148156
run: npx electron-builder --linux --${{ matrix.arch }} -p never
149157
env:
150158
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
159+
NODE_OPTIONS: '--max-old-space-size=4096'
151160

152161
- name: Upload artifacts
153162
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)