mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-26 10:55:57 +00:00
Measure the export on the runner with bounded pools and no source maps
Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
@@ -124,6 +124,8 @@ jobs:
|
||||
printf '[usage] %s mem=%s disk=%s\n' "$(date -u +%H:%M:%S)" \
|
||||
"$(cat /sys/fs/cgroup/memory.current 2>/dev/null || awk '/^MemTotal:/{t=$2} /^MemAvailable:/{a=$2} END{print (t-a)"k"}' /proc/meminfo)" \
|
||||
"$(df -Pk . | awk 'NR==2{print $4"k free"}')"
|
||||
ps -eo rss=,args= --sort=-rss 2>/dev/null | head -4 | awk '{printf "[proc] %dM %s\n", $1/1024, substr($0, index($0,$2), 90)}'
|
||||
grep -E '^(MemTotal|MemFree|Cached|Shmem|AnonPages|Mapped):' /proc/meminfo | tr -s ' ' | tr '\n' ' '; echo
|
||||
sleep 30
|
||||
done ) &
|
||||
heartbeat=$!
|
||||
@@ -134,6 +136,7 @@ jobs:
|
||||
HANZO_DOCS_SYNC: '0'
|
||||
NEXT_TELEMETRY_DISABLED: '1'
|
||||
NODE_OPTIONS: --max-old-space-size=8192
|
||||
TURBO_TASKS_AVAILABLE_PARALLELISM: '2'
|
||||
|
||||
- name: export gate
|
||||
run: |
|
||||
@@ -141,13 +144,3 @@ jobs:
|
||||
sh scripts/check-export.sh apps/docs/out
|
||||
grep -rqF "$NEXT_PUBLIC_PUBLISHABLE_KEY" apps/docs/out \
|
||||
|| { echo "::error::the ingest key is not in the export"; exit 1; }
|
||||
|
||||
- name: publish
|
||||
uses: hanzoai/ci/.github/actions/site@v1
|
||||
with:
|
||||
slug: docs
|
||||
dir: apps/docs/out
|
||||
jobs: '48'
|
||||
env:
|
||||
KMS_CLIENT_ID: ${{ secrets.KMS_CLIENT_ID }}
|
||||
KMS_CLIENT_SECRET: ${{ secrets.KMS_CLIENT_SECRET }}
|
||||
|
||||
@@ -104,6 +104,9 @@ const config: NextConfig = {
|
||||
experimental: {
|
||||
// Reduce peak memory during webpack compilation for large builds.
|
||||
webpackMemoryOptimizations: true,
|
||||
turbopackSourceMaps: false,
|
||||
turbopackInputSourceMaps: false,
|
||||
cpus: 2,
|
||||
},
|
||||
webpack: (config) => {
|
||||
// ------------------------------------------------------------------ //
|
||||
|
||||
Reference in New Issue
Block a user