diff --git a/Dockerfile.gh-build b/Dockerfile.gh-build deleted file mode 100644 index 514441eb..00000000 --- a/Dockerfile.gh-build +++ /dev/null @@ -1,21 +0,0 @@ -FROM ubuntu:24.04 - -ENV DEBIAN_FRONTEND=noninteractive - -RUN apt-get update \ - && apt-get install -y curl unzip git xz-utils ca-certificates \ - && curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \ - && apt-get install -y nodejs \ - && BUN_VERSION=1.2.20 \ - && ARCH=$(dpkg --print-architecture) \ - && if [ "$ARCH" = "amd64" ]; then BUN_ARCH="linux-x64"; else BUN_ARCH="linux-aarch64"; fi \ - && curl -fsSL "https://github.com/oven-sh/bun/releases/download/bun-v${BUN_VERSION}/bun-${BUN_ARCH}.zip" -o /tmp/bun.zip \ - && unzip /tmp/bun.zip -d /tmp \ - && mv /tmp/bun-${BUN_ARCH}/bun /usr/local/bin/bun \ - && chmod +x /usr/local/bin/bun \ - && rm -rf /tmp/bun.zip /tmp/bun-linux-x64 \ - && rm -rf /var/lib/apt/lists/* - -WORKDIR /repo - -ENTRYPOINT ["/bin/bash", "-lc"] diff --git a/scripts/gh-build-docker.sh b/scripts/gh-build-docker.sh deleted file mode 100755 index 94b2062f..00000000 --- a/scripts/gh-build-docker.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash -set -euo pipefail - -echo "=== Versions ===" -node --version -bun --version -npm --version - -echo "=== Install dependencies ===" -npm ci - -echo "=== Install cross-platform bindings ===" -npm install --no-save --force \ - @mariozechner/clipboard-darwin-arm64@0.3.0 \ - @mariozechner/clipboard-darwin-x64@0.3.0 \ - @mariozechner/clipboard-linux-x64-gnu@0.3.0 \ - @mariozechner/clipboard-linux-arm64-gnu@0.3.0 \ - @mariozechner/clipboard-win32-x64-msvc@0.3.0 - -npm install --no-save --force \ - @img/sharp-darwin-arm64@0.34.5 \ - @img/sharp-darwin-x64@0.34.5 \ - @img/sharp-linux-x64@0.34.5 \ - @img/sharp-linux-arm64@0.34.5 \ - @img/sharp-win32-x64@0.34.5 \ - @img/sharp-libvips-darwin-arm64@1.2.4 \ - @img/sharp-libvips-darwin-x64@1.2.4 \ - @img/sharp-libvips-linux-x64@1.2.4 \ - @img/sharp-libvips-linux-arm64@1.2.4 - -echo "=== Build all packages ===" -npm run build - -echo "=== Build darwin-arm64 binary ===" -mkdir -p /repo/.tmp -cd packages/coding-agent -bun build --compile --target=bun-darwin-arm64 ./dist/cli.js --outfile /repo/.tmp/pi-darwin-arm64 - -echo "=== Done ===" -ls -la /repo/.tmp/pi-darwin-arm64 diff --git a/scripts/test-gh-build.sh b/scripts/test-gh-build.sh deleted file mode 100644 index 1c17db1f..00000000 --- a/scripts/test-gh-build.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -set -e - -# Simulate GH Actions build locally - -cd /Users/badlogic/workspaces/pi-mono - -echo "=== Cleaning node_modules ===" -rm -rf node_modules packages/*/node_modules - -echo "=== npm ci ===" -npm ci - -echo "=== Install cross-platform bindings (like GH Actions) ===" -npm install --no-save --force \ - @mariozechner/clipboard-darwin-arm64@0.3.0 \ - @mariozechner/clipboard-darwin-x64@0.3.0 \ - @mariozechner/clipboard-linux-x64-gnu@0.3.0 \ - @mariozechner/clipboard-linux-arm64-gnu@0.3.0 \ - @mariozechner/clipboard-win32-x64-msvc@0.3.0 - -npm install --no-save --force \ - @img/sharp-darwin-arm64@0.34.5 \ - @img/sharp-darwin-x64@0.34.5 \ - @img/sharp-linux-x64@0.34.5 \ - @img/sharp-linux-arm64@0.34.5 \ - @img/sharp-win32-x64@0.34.5 \ - @img/sharp-libvips-darwin-arm64@1.2.4 \ - @img/sharp-libvips-darwin-x64@1.2.4 \ - @img/sharp-libvips-linux-x64@1.2.4 \ - @img/sharp-libvips-linux-arm64@1.2.4 - -echo "=== Build all packages ===" -npm run build - -echo "=== Build binary with cross-compile flag ===" -cd packages/coding-agent -bun build --compile --target=bun-darwin-arm64 ./dist/cli.js --outfile /tmp/pi-gh-sim/pi -cp package.json /tmp/pi-gh-sim/ - -echo "=== Test the binary ===" -/tmp/pi-gh-sim/pi -e /Users/badlogic/workspaces/pi-doom --help 2>&1 | head -5 - -echo "=== Binary size ===" -ls -la /tmp/pi-gh-sim/pi