From 17f2e32b62e82bfc3e830d60edb208cd07e82bc7 Mon Sep 17 00:00:00 2001 From: Francesco Bonacci Date: Thu, 23 Apr 2026 00:29:03 -0700 Subject: [PATCH] ci: wire cua-driver into release-bump-version workflow Adds cua-driver as a selectable service in the CD: Bump Version workflow, matching how lume is wired. Running the workflow with `service=cua-driver` now: 1. Bumps the version string in `libs/cua-driver/Sources/CuaDriverCore/CuaDriverCore.swift` (the single authoritative source read by TelemetryClient et al.) via the new `libs/cua-driver/.bumpversion.cfg`. 2. Creates and pushes a `cua-driver-v{new_version}` tag. 3. The existing `cd-swift-cua-driver.yml` workflow picks up the tag and runs the codesign + notarize + GitHub-release flow. Current version is 0.0.1; first bump should be `minor` to reach 0.1.0 to match the public v0.1 release. Co-Authored-By: Claude --- .github/workflows/release-bump-version.yml | 13 +++++++++++++ libs/cua-driver/.bumpversion.cfg | 10 ++++++++++ 2 files changed, 23 insertions(+) create mode 100644 libs/cua-driver/.bumpversion.cfg 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}"