Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Fix set as latest

f-trycua17002e3a9704
diff --git a/.github/workflows/publish-agent.yml b/.github/workflows/publish-agent.yml
index 1566880bb1..2a4b3be008 100644
--- a/.github/workflows/publish-agent.yml
+++ b/.github/workflows/publish-agent.yml
@@ -148,6 +148,7 @@ jobs:
version: ${{ needs.prepare.outputs.version }}
is_lume_package: false
base_package_name: "cua-agent"
+ make_latest: false
secrets:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
diff --git a/.github/workflows/publish-computer-server.yml b/.github/workflows/publish-computer-server.yml
index 15eca34856..d2ba14d26f 100644
--- a/.github/workflows/publish-computer-server.yml
+++ b/.github/workflows/publish-computer-server.yml
@@ -68,6 +68,7 @@ jobs:
version: ${{ needs.prepare.outputs.version }}
is_lume_package: false
base_package_name: "cua-computer-server"
+ make_latest: false
secrets:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
diff --git a/.github/workflows/publish-computer.yml b/.github/workflows/publish-computer.yml
index 9175907e11..6933793a12 100644
--- a/.github/workflows/publish-computer.yml
+++ b/.github/workflows/publish-computer.yml
@@ -135,6 +135,7 @@ jobs:
version: ${{ needs.prepare.outputs.version }}
is_lume_package: false
base_package_name: "cua-computer"
+ make_latest: false
secrets:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
diff --git a/.github/workflows/publish-core.yml b/.github/workflows/publish-core.yml
index 4f868f26c1..f3fd403758 100644
--- a/.github/workflows/publish-core.yml
+++ b/.github/workflows/publish-core.yml
@@ -59,5 +59,6 @@ jobs:
version: ${{ needs.prepare.outputs.version }}
is_lume_package: false
base_package_name: "cua-core"
+ make_latest: false
secrets:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
\ No newline at end of file
diff --git a/.github/workflows/publish-lume.yml b/.github/workflows/publish-lume.yml
index 5115a1c64a..3b2311eea5 100644
--- a/.github/workflows/publish-lume.yml
+++ b/.github/workflows/publish-lume.yml
@@ -242,4 +242,5 @@ jobs:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/lume/scripts/install.sh)"
```
- generate_release_notes: true
\ No newline at end of file
+ generate_release_notes: true
+ make_latest: true
\ No newline at end of file
diff --git a/.github/workflows/publish-omniparser.yml b/.github/workflows/publish-omniparser.yml
deleted file mode 100644
index 8a8227f9bc..0000000000
--- a/.github/workflows/publish-omniparser.yml
+++ /dev/null
@@ -1,67 +0,0 @@
-name: Publish OmniParser Package
-
-on:
- push:
- tags:
- - 'omniparser-v*'
- workflow_dispatch:
- inputs:
- version:
- description: 'Version to publish (without v prefix)'
- required: true
- default: '0.1.0'
- workflow_call:
- inputs:
- version:
- description: 'Version to publish'
- required: true
- type: string
- outputs:
- version:
- description: "The version that was published"
- value: ${{ jobs.determine-version.outputs.version }}
-
-# Adding permissions at workflow level
-permissions:
- contents: write
-
-jobs:
- determine-version:
- runs-on: macos-latest
- outputs:
- version: ${{ steps.get-version.outputs.version }}
- steps:
- - uses: actions/checkout@v4
-
- - name: Determine version
- id: get-version
- run: |
- if [ "${{ github.event_name }}" == "push" ]; then
- # Extract version from tag (for package-specific tags)
- if [[ "${{ github.ref }}" =~ ^refs/tags/omniparser-v([0-9]+\.[0-9]+\.[0-9]+) ]]; then
- VERSION=${BASH_REMATCH[1]}
- else
- echo "Invalid tag format for omniparser"
- exit 1
- fi
- elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
- # Use version from workflow dispatch
- VERSION=${{ github.event.inputs.version }}
- else
- # Use version from workflow_call
- VERSION=${{ inputs.version }}
- fi
- echo "VERSION=$VERSION"
- echo "version=$VERSION" >> $GITHUB_OUTPUT
-
- publish:
- needs: determine-version
- uses: ./.github/workflows/reusable-publish.yml
- with:
- package_name: "omniparser"
- package_dir: "libs/omniparser"
- version: ${{ needs.determine-version.outputs.version }}
- is_lume_package: false
- base_package_name: "cua-omniparser"
- secrets:
- PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
\ No newline at end of file
diff --git a/.github/workflows/publish-pylume.yml b/.github/workflows/publish-pylume.yml
index dddde233ad..c1de45e87a 100644
--- a/.github/workflows/publish-pylume.yml
+++ b/.github/workflows/publish-pylume.yml
@@ -63,5 +63,6 @@ jobs:
version: ${{ needs.determine-version.outputs.version }}
is_lume_package: true
base_package_name: "pylume"
+ make_latest: false
secrets:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
\ No newline at end of file
diff --git a/.github/workflows/publish-som.yml b/.github/workflows/publish-som.yml
index 04ea9bb8a3..6dccec49c8 100644
--- a/.github/workflows/publish-som.yml
+++ b/.github/workflows/publish-som.yml
@@ -59,9 +59,10 @@ jobs:
uses: ./.github/workflows/reusable-publish.yml
with:
package_name: "som"
- package_dir: "libs/som" # Updated to the new directory name
+ package_dir: "libs/som"
version: ${{ needs.determine-version.outputs.version }}
is_lume_package: false
base_package_name: "cua-som"
+ make_latest: false
secrets:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
\ No newline at end of file
diff --git a/.github/workflows/reusable-publish.yml b/.github/workflows/reusable-publish.yml
index 43cd5177bd..cd86053178 100644
--- a/.github/workflows/reusable-publish.yml
+++ b/.github/workflows/reusable-publish.yml
@@ -24,6 +24,11 @@ on:
description: 'PyPI package name (e.g. pylume, cua-agent)'
required: true
type: string
+ make_latest:
+ description: 'Whether to mark this release as latest (should only be true for lume)'
+ required: false
+ type: boolean
+ default: false
secrets:
PYPI_TOKEN:
required: true
@@ -238,5 +243,6 @@ jobs:
files: ${{ inputs.package_dir }}/${{ env.WHEEL_FILE }}
draft: false
prerelease: false
+ make_latest: ${{ inputs.make_latest }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file