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.

ci: wire cua-driver into release-bump-version workflow (#1364)

Francesco Bonacci212e1e895f3f
diff --git a/.github/workflows/release-bump-version.yml b/.github/workflows/release-bump-version.yml
index 317f48fb27..74eb6ad718 100644
--- a/.github/workflows/release-bump-version.yml
+++ b/.github/workflows/release-bump-version.yml
@@ -27,6 +27,7 @@ on:
- npm/playground
- npm/cuabot
- lume
+ - cua-driver
- docker/cuabot
- docker/kasm
- docker/xfce
@@ -130,6 +131,10 @@ jobs:
echo "directory=libs/lume" >> $GITHUB_OUTPUT
echo "type=lume" >> $GITHUB_OUTPUT
;;
+ "cua-driver")
+ echo "directory=libs/cua-driver" >> $GITHUB_OUTPUT
+ echo "type=cua-driver" >> $GITHUB_OUTPUT
+ ;;
"docker/cuabot")
echo "directory=libs/cuabot" >> $GITHUB_OUTPUT
echo "type=docker" >> $GITHUB_OUTPUT
@@ -380,6 +385,14 @@ jobs:
echo "lume version: $VERSION"
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
+ - name: Capture bumped cua-driver version
+ if: ${{ inputs.service == 'cua-driver' }}
+ id: cua_driver_version
+ run: |
+ VERSION=$(grep -oP 'public static let version = "\K[^"]+' libs/cua-driver/Sources/CuaDriverCore/CuaDriverCore.swift)
+ echo "cua-driver version: $VERSION"
+ echo "version=$VERSION" >> "$GITHUB_OUTPUT"
+
- name: Capture bumped cuabot version
if: ${{ inputs.service == 'npm/cuabot' }}
id: cuabot_version
diff --git a/libs/cua-driver/.bumpversion.cfg b/libs/cua-driver/.bumpversion.cfg
new file mode 100644
index 0000000000..1c9f2c7560
--- /dev/null
+++ b/libs/cua-driver/.bumpversion.cfg
@@ -0,0 +1,10 @@
+[bumpversion]
+current_version = 0.0.1
+commit = True
+tag = True
+tag_name = cua-driver-v{new_version}
+message = Bump cua-driver to v{new_version}
+
+[bumpversion:file:Sources/CuaDriverCore/CuaDriverCore.swift]
+search = public static let version = "{current_version}"
+replace = public static let version = "{new_version}"