obs-ss-plugin-webui/.forgejo/workflows/build.yml
Decobus a16bdcc7b9
Some checks failed
Lint and Build / build (pull_request) Failing after 4m19s
Fix CI build failures on self-hosted runners
- 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 <noreply@anthropic.com>
2025-07-20 00:43:45 -04:00

38 lines
No EOL
762 B
YAML

name: Lint and Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: self-hosted
# Note: Node.js is pre-installed on self-hosted runners
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Clean NextJS cache
run: rm -rf .next
- name: Install dependencies
run: npm ci --no-optional
- name: Run type check
run: npm run type-check
- name: Run linter
run: npm run lint
- name: Build project
run: npm run build
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: obs-ss-build
include-hidden-files: 'true'
path: ./.next/*