From 8459b7f70168126931f925ecbaf996d9dbd968bf Mon Sep 17 00:00:00 2001 From: Decobus Date: Sun, 20 Jul 2025 02:14:40 -0400 Subject: [PATCH] Fix ARM runner build issues by installing C++ build tools MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add automatic detection and installation of build-essential - Support Ubuntu/Debian, Alpine, and RHEL/CentOS ARM runners - Resolves 'c++: No such file or directory' error for native modules - Ensures bufferutil and other native dependencies can compile 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .forgejo/workflows/build.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index b779fe7..d5e2caf 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -15,6 +15,18 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 + - name: Install build dependencies + run: | + if command -v apt-get >/dev/null 2>&1; then + sudo apt-get update + sudo apt-get install -y build-essential python3-dev + elif command -v apk >/dev/null 2>&1; then + sudo apk add --no-cache build-base python3-dev + elif command -v yum >/dev/null 2>&1; then + sudo yum groupinstall -y "Development Tools" + sudo yum install -y python3-devel + fi + - name: Clean NextJS cache run: rm -rf .next