From 9aa92ab9f61df90539101021bd00f2a25da002aa Mon Sep 17 00:00:00 2001 From: root Date: Tue, 3 Mar 2026 06:11:26 +0000 Subject: [PATCH] regen --- .github/workflows/ci.yml | 66 ++++++++++++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..00cabc1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,66 @@ +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 + + 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: "latest" + + - name: Install Node dependencies + run: npm install + + - 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 + + - 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 diff --git a/package.json b/package.json index c191ef3..e299040 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "windows-arm64": "esbuild cli.ts --bundle --loader:.hbs=text --platform=node --target=node18 --format=esm --external:fsevents --outfile=dist/bundle-win-arm64.mjs && pkg dist/bundle-win-arm64.mjs -t node18-win-arm64 -o build/appwrite-cli-win-arm64.exe" }, "dependencies": { - "@appwrite.io/console": "^3.1.0", + "@appwrite.io/console": "^4.0.0", "chalk": "4.1.2", "chokidar": "^3.6.0", "cli-progress": "^3.12.0",