From bfab3ce043f7a6941148c87ad189f04add3258f2 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Wed, 1 Apr 2026 00:12:37 -0700 Subject: [PATCH] Fix CI: skip native scripts during npm ci to prevent OOM node-pty native compilation during npm ci uses excessive memory. Using --ignore-scripts since tests and build don't need native modules. Removed python3/make/g++ from install step. Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/ci.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 8a6076b..6c1770d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -17,11 +17,13 @@ jobs: steps: - name: Checkout run: | - apt-get update -qq && apt-get install -y -qq git python3 make g++ > /dev/null 2>&1 + apt-get update -qq && apt-get install -y -qq git > /dev/null 2>&1 git clone --depth 1 --branch ${{ github.ref_name }} http://token:${{ github.token }}@server:3000/${{ github.repository }}.git . - name: Install dependencies - run: npm ci --legacy-peer-deps + run: npm ci --legacy-peer-deps --ignore-scripts + env: + NODE_OPTIONS: "--max-old-space-size=4096" - name: Type check run: npx tsc --noEmit @@ -37,14 +39,16 @@ jobs: steps: - name: Checkout run: | - apt-get update -qq && apt-get install -y -qq git python3 make g++ > /dev/null 2>&1 + apt-get update -qq && apt-get install -y -qq git > /dev/null 2>&1 git clone --depth 1 --branch ${{ github.ref_name }} http://token:${{ github.token }}@server:3000/${{ github.repository }}.git . - name: Install dependencies - run: npm ci --legacy-peer-deps + run: npm ci --legacy-peer-deps --ignore-scripts + env: + NODE_OPTIONS: "--max-old-space-size=4096" - name: Build - run: npm run build + run: npx tsc && npx vite build env: NODE_OPTIONS: "--max-old-space-size=4096"