mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 10:05:14 +00:00
Clean-up
This commit is contained in:
parent
3c60ffa677
commit
cedd8fe306
3 changed files with 0 additions and 106 deletions
|
|
@ -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"]
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue