Skip to content

Commit 6cdec07

Browse files
committed
git: remove worker arg; fail on error early.
1 parent 19d403e commit 6cdec07

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/docs.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ jobs:
214214
- name: 📥 Download formal spec HTML
215215
if: steps.check_changes.outputs.has_changes == 'true'
216216
uses: actions/download-artifact@v4
217-
continue-on-error: true
217+
continue-on-error: false
218218
with:
219219
name: formal-spec-html
220220
path: formal-spec-html
@@ -246,8 +246,7 @@ jobs:
246246
echo "Available memory before processing:"
247247
free -h
248248
249-
# Use more memory but only 1 worker to reduce overall memory usage
250-
NODE_OPTIONS="--max-old-space-size=24576" npx agda-web-docs-lib process ./static/formal-spec ./agda-docs.config.json --workers 1
249+
NODE_OPTIONS="--max-old-space-size=16384" npx agda-web-docs-lib process ./static/formal-spec ./agda-docs.config.json
251250
else
252251
echo "No HTML files found in formal-spec directory, skipping enhancement"
253252
fi
@@ -319,7 +318,7 @@ jobs:
319318
# Download formal spec HTML specifically from the workflow run
320319
- name: 📥 Download formal spec HTML
321320
uses: actions/download-artifact@v4
322-
continue-on-error: true
321+
continue-on-error: false
323322
with:
324323
name: formal-spec-html
325324
run-id: ${{ github.event.workflow_run.id }}
@@ -351,8 +350,7 @@ jobs:
351350
echo "Available memory before processing:"
352351
free -h
353352
354-
# Use more memory but only 1 worker to reduce overall memory usage
355-
NODE_OPTIONS="--max-old-space-size=24576" npx agda-web-docs-lib process ./static/formal-spec ./agda-docs.config.json --workers 1
353+
NODE_OPTIONS="--max-old-space-size=16384" npx agda-web-docs-lib process ./static/formal-spec ./agda-docs.config.json
356354
else
357355
echo "No HTML files found in formal-spec directory, skipping enhancement"
358356
fi

0 commit comments

Comments
 (0)