From 1854ead623fd8304c0d7f6aef2f9e806643670d6 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 28 Oct 2026 01:52:05 +0000 Subject: [PATCH] unpin droid cli in ci revert #44 so ci installs the latest droid again. Co-authored-by: Kaitian Xie --- .github/workflows/ci.yml | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1a901e..16398e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,8 +35,12 @@ jobs: id: droid-version run: | echo "$HOME/.local/bin" >> "$GITHUB_PATH" - # Pinned because of the 0.249.0 marketplace-add credential bug. Unpin later. - version="0.248.0" + installer="$(curl -fsSL https://app.factory.ai/cli)" + version="$(printf '%s' "$installer" | sed -n 's/^VER="\([^"]*\)"$/\1/p')" + if [ -z "$version" ]; then + echo "Failed to resolve Droid CLI version from https://app.factory.ai/cli" >&2 + exit 1 + fi droid_arch="x64" if ! grep -qi avx2 /proc/cpuinfo; then droid_arch="x64-baseline" @@ -47,8 +51,6 @@ jobs: exit 1 fi echo "version=${version}-${droid_arch}-${sha256}" >> "$GITHUB_OUTPUT" - echo "droid_version=${version}" >> "$GITHUB_OUTPUT" - echo "droid_arch=${droid_arch}" >> "$GITHUB_OUTPUT" - name: Cache Droid CLI id: cache-droid @@ -59,21 +61,7 @@ jobs: - name: Install Droid CLI if: steps.cache-droid.outputs.cache-hit != 'true' - env: - DROID_VERSION: ${{ steps.droid-version.outputs.droid_version }} - DROID_ARCH: ${{ steps.droid-version.outputs.droid_arch }} - run: | - base="https://downloads.factory.ai/factory-cli/releases/${DROID_VERSION}/linux/${DROID_ARCH}" - dest="$HOME/.local/bin/droid" - mkdir -p "$HOME/.local/bin" - curl -fsSL -o "$dest" "${base}/droid" - expected="$(curl -fsSL "${base}/droid.sha256" | awk '{print $1}')" - actual="$(sha256sum "$dest" | awk '{print $1}')" - if [ -z "$expected" ] || [ "$actual" != "$expected" ]; then - echo "Checksum verification failed" >&2 - exit 1 - fi - chmod +x "$dest" + run: curl -fsSL https://app.factory.ai/cli | bash - name: Verify Droid CLI version run: droid --version