feat: Command Line SDK update for version 19.0.0 #94
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| build-validation: | |
| name: Build Validation | |
| runs-on: ubuntu-latest | |
| env: | |
| # Keep CI aligned with the release workflow. Bun 1.3.12 has a sig_size | |
| # calculation bug in macho.zig that truncates the LC_CODE_SIGNATURE blob | |
| # on cross-compiled Darwin binaries (oven-sh/bun#29120). macOS kills the | |
| # resulting unsigned binaries on launch. Unpin once a Bun release includes | |
| # the upstream fix (oven-sh/bun#29122). | |
| CLI_BUN_VERSION: "1.3.11" | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: ${{ env.CLI_BUN_VERSION }} | |
| - name: Install Node dependencies | |
| run: npm ci | |
| - name: Build project | |
| run: npm run build | |
| - name: Verify CLI runs with Node | |
| run: node dist/cli.cjs -v | |
| - name: Verify npm package can be built | |
| run: npm pack | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Build all platform binaries | |
| run: | | |
| rm -rf build | |
| mkdir -p build | |
| bun run linux-x64 | |
| bun run linux-arm64 | |
| bun run windows-x64 | |
| bun run windows-arm64 | |
| bun run mac-x64 | |
| bun run mac-arm64 | |
| - name: Verify generated binaries | |
| run: | | |
| test -s build/appwrite-cli-linux-x64 | |
| test -s build/appwrite-cli-linux-arm64 | |
| test -s build/appwrite-cli-win-x64.exe | |
| test -s build/appwrite-cli-win-arm64.exe | |
| test -s build/appwrite-cli-darwin-x64 | |
| test -s build/appwrite-cli-darwin-arm64 |