faster builds
This commit is contained in:
@@ -16,19 +16,17 @@ services:
|
|||||||
command: |
|
command: |
|
||||||
-c '
|
-c '
|
||||||
set -e
|
set -e
|
||||||
echo "Building for Linux platforms..."
|
echo "Building for Linux platforms (parallel)..."
|
||||||
|
|
||||||
# Linux x64
|
# Build both targets in parallel
|
||||||
echo "→ Linux x64"
|
(echo "→ Linux x64" && cargo zigbuild --release --target x86_64-unknown-linux-gnu && cp /build/target/x86_64-unknown-linux-gnu/release/agent-browser /output/agent-browser-linux-x64 && chmod +x /output/agent-browser-linux-x64 && echo "✓ Linux x64 done") &
|
||||||
cargo zigbuild --release --target x86_64-unknown-linux-gnu
|
PID1=$!
|
||||||
cp /build/target/x86_64-unknown-linux-gnu/release/agent-browser /output/agent-browser-linux-x64
|
|
||||||
chmod +x /output/agent-browser-linux-x64
|
|
||||||
|
|
||||||
# Linux ARM64
|
(echo "→ Linux ARM64" && cargo zigbuild --release --target aarch64-unknown-linux-gnu && cp /build/target/aarch64-unknown-linux-gnu/release/agent-browser /output/agent-browser-linux-arm64 && chmod +x /output/agent-browser-linux-arm64 && echo "✓ Linux ARM64 done") &
|
||||||
echo "→ Linux ARM64"
|
PID2=$!
|
||||||
cargo zigbuild --release --target aarch64-unknown-linux-gnu
|
|
||||||
cp /build/target/aarch64-unknown-linux-gnu/release/agent-browser /output/agent-browser-linux-arm64
|
# Wait for both to complete
|
||||||
chmod +x /output/agent-browser-linux-arm64
|
wait $PID1 $PID2
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "✓ Linux platforms built successfully!"
|
echo "✓ Linux platforms built successfully!"
|
||||||
|
|||||||
+4
-4
@@ -16,12 +16,12 @@
|
|||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"build:native": "cargo build --release --manifest-path cli/Cargo.toml && node scripts/copy-native.js",
|
"build:native": "cargo build --release --manifest-path cli/Cargo.toml && node scripts/copy-native.js",
|
||||||
"build:linux": "docker compose -f docker/docker-compose.yml run --rm build-linux",
|
"build:linux": "docker compose -f docker/docker-compose.yml run --rm build-linux",
|
||||||
"build:macos": "cargo build --release --manifest-path cli/Cargo.toml --target aarch64-apple-darwin && cargo build --release --manifest-path cli/Cargo.toml --target x86_64-apple-darwin && cp cli/target/aarch64-apple-darwin/release/agent-browser bin/agent-browser-darwin-arm64 && cp cli/target/x86_64-apple-darwin/release/agent-browser bin/agent-browser-darwin-x64",
|
"build:macos": "(cargo build --release --manifest-path cli/Cargo.toml --target aarch64-apple-darwin & cargo build --release --manifest-path cli/Cargo.toml --target x86_64-apple-darwin & wait) && cp cli/target/aarch64-apple-darwin/release/agent-browser bin/agent-browser-darwin-arm64 && cp cli/target/x86_64-apple-darwin/release/agent-browser bin/agent-browser-darwin-x64",
|
||||||
"build:windows": "docker compose -f docker/docker-compose.yml run --rm build-windows",
|
"build:windows": "docker compose -f docker/docker-compose.yml run --rm build-windows",
|
||||||
"build:all-platforms": "npm run build:linux && npm run build:windows && npm run build:macos",
|
"build:all-platforms": "(npm run build:linux & npm run build:windows & wait) && npm run build:macos",
|
||||||
"build:docker": "docker build -t agent-browser-builder -f docker/Dockerfile.build .",
|
"build:docker": "docker build -t agent-browser-builder -f docker/Dockerfile.build .",
|
||||||
"start": "node dist/index.js",
|
"start": "node dist/daemon.js",
|
||||||
"dev": "tsx src/index.ts",
|
"dev": "tsx src/daemon.ts",
|
||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit",
|
||||||
"format": "prettier --write 'src/**/*.ts'",
|
"format": "prettier --write 'src/**/*.ts'",
|
||||||
"format:check": "prettier --check 'src/**/*.ts'",
|
"format:check": "prettier --check 'src/**/*.ts'",
|
||||||
|
|||||||
Reference in New Issue
Block a user