Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

merge workflow dispatch for builder

Rahul Tarak059916a10c3e
diff --git a/.github/workflows/build-cli-binaries.yml b/.github/workflows/build-cli-binaries.yml
new file mode 100644
index 000000000..ae9edc774
--- /dev/null
+++ b/.github/workflows/build-cli-binaries.yml
@@ -0,0 +1,184 @@
+name: Build CLI Binaries
+
+on:
+ push:
+ tags:
+ - 'v*'
+ workflow_dispatch:
+ inputs:
+ version:
+ description: 'Version to build (e.g., v1.0.0)'
+ required: false
+ default: 'dev'
+
+permissions:
+ contents: write
+
+jobs:
+ build-binaries:
+ name: Build CLI Binaries
+ runs-on: ${{ matrix.runner }}
+ strategy:
+ matrix:
+ include:
+ - runner: ubuntu-latest
+ platform: linux-x64
+ artifact: composio-linux-x64
+ - runner: depot-ubuntu-24.04-arm
+ platform: linux-aarch64
+ artifact: composio-linux-aarch64
+ - runner: macos-13 # Intel Mac
+ platform: darwin-x64
+ artifact: composio-darwin-x64
+ - runner: macos-latest # Apple Silicon Mac
+ platform: darwin-aarch64
+ artifact: composio-darwin-aarch64
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Setup Bun
+ uses: oven-sh/setup-bun@v2
+ with:
+ bun-version: latest
+
+ - name: Setup pnpm
+ uses: pnpm/action-setup@v4
+ with:
+ version: 10.8.0
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: '20'
+ cache: 'pnpm'
+
+ - name: Install dependencies
+ run: pnpm install --frozen-lockfile
+
+ - name: Build packages
+ run: pnpm build:packages
+
+ - name: Build CLI binary
+ working-directory: ts/packages/cli
+ run: |
+ # Use the existing build:bin script which builds for current platform
+ pnpm build:bin
+
+ # Create binaries directory and copy/rename the binary
+ mkdir -p dist/binaries
+ cp dist/composio dist/binaries/${{ matrix.artifact }}
+
+ - name: Verify binary
+ working-directory: ts/packages/cli
+ run: |
+ ls -la dist/binaries/${{ matrix.artifact }}
+ file dist/binaries/${{ matrix.artifact }}
+
+ - name: Test binary
+ working-directory: ts/packages/cli
+ run: |
+ ./dist/binaries/${{ matrix.artifact }} --version
+ ./dist/binaries/${{ matrix.artifact }} --help | head -5
+
+ - name: Create archive
+ working-directory: ts/packages/cli/dist/binaries
+ run: |
+ zip ${{ matrix.artifact }}.zip ${{ matrix.artifact }}
+ ls -la
+
+ - name: Upload binary artifact
+ uses: actions/upload-artifact@v4
+ with:
+ name: ${{ matrix.artifact }}
+ path: |
+ ts/packages/cli/dist/binaries/${{ matrix.artifact }}
+ ts/packages/cli/dist/binaries/${{ matrix.artifact }}.zip
+ retention-days: 7
+
+ - name: Create Release
+ if: startsWith(github.ref, 'refs/tags/')
+ uses: softprops/action-gh-release@v2
+ with:
+ files: |
+ ts/packages/cli/dist/binaries/${{ matrix.artifact }}.zip
+ draft: false
+ prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc') }}
+ generate_release_notes: true
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+ test-installation:
+ name: Test Installation
+ needs: build-binaries
+ if: startsWith(github.ref, 'refs/tags/')
+ uses: ./.github/workflows/test-installation.yml
+ with:
+ version: ${{ github.ref_name }}
+
+ create-install-instructions:
+ name: Create Install Instructions
+ needs: build-binaries
+ runs-on: ubuntu-latest
+ if: startsWith(github.ref, 'refs/tags/')
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Create installation README
+ run: |
+ cat > INSTALL.md << 'EOF'
+ # Composio CLI Installation
+
+ ## Quick Install (Recommended)
+
+ ### Linux and macOS
+ ```bash
+ curl -fsSL https://raw.githubusercontent.com/ComposioHQ/composio/main/install.sh | bash
+ ```
+
+ ### Install specific version
+ ```bash
+ curl -fsSL https://raw.githubusercontent.com/ComposioHQ/composio/main/install.sh | bash -s -- ${{ github.ref_name }}
+ ```
+
+ ## Manual Installation
+
+ 1. Download the appropriate binary for your platform from the [releases page](https://github.com/ComposioHQ/composio/releases)
+ 2. Extract the binary
+ 3. Move it to a directory in your PATH (e.g., `/usr/local/bin`)
+ 4. Make it executable: `chmod +x composio`
+
+ ## Alternative: npm/pnpm Installation
+
+ ```bash
+ npm install -g @composio/cli
+ # or
+ pnpm add -g @composio/cli
+ ```
+
+ ## Usage
+
+ ```bash
+ composio --help
+ composio login
+ composio generate
+ ```
+
+ ## Supported Platforms
+
+ - Linux x64
+ - Linux ARM64
+ - macOS x64 (Intel)
+ - macOS ARM64 (Apple Silicon)
+
+ Windows support coming soon!
+ EOF
+
+ - name: Upload install instructions
+ uses: actions/upload-artifact@v4
+ with:
+ name: install-instructions
+ path: INSTALL.md
\ No newline at end of file