From a16bdcc7b944107482a146ceb8a18cc8976dcd5d Mon Sep 17 00:00:00 2001 From: Decobus Date: Sun, 20 Jul 2025 00:43:45 -0400 Subject: [PATCH] Fix CI build failures on self-hosted runners MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Move bufferutil to optionalDependencies (not required for core functionality) - Add --no-optional flag to npm ci in workflow to skip native dependencies - This avoids needing C++ build tools on CI runners The bufferutil package is a performance optimization for WebSocket but not required. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .forgejo/workflows/build.yml | 2 +- package.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index b779fe7..a2c9e0b 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -19,7 +19,7 @@ jobs: run: rm -rf .next - name: Install dependencies - run: npm ci + run: npm ci --no-optional - name: Run type check run: npm run type-check diff --git a/package.json b/package.json index 0102daa..1e235e4 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ }, "dependencies": { "@tailwindcss/postcss": "^4.1.11", - "bufferutil": "^4.0.8", "next": "^15.4.1", "obs-websocket-js": "^5.0.6", "react": "^19.1.0", @@ -25,6 +24,9 @@ "sqlite3": "^5.1.7", "ws": "^8.18.0" }, + "optionalDependencies": { + "bufferutil": "^4.0.8" + }, "devDependencies": { "@tailwindcss/forms": "^0.5.10", "@testing-library/jest-dom": "^6.6.3",