mirror of
https://github.com/trycua/computer.git
synced 2026-02-26 17:19:47 -06:00
Rename @cua/ to @trycua/, move ts example to ./examples, rename workflows for better organization
This commit is contained in:
4
.github/workflows/ci-lume.yml
vendored
4
.github/workflows/ci-lume.yml
vendored
@@ -20,7 +20,7 @@ jobs:
|
||||
- run: uname -a
|
||||
- run: sudo xcode-select -s /Applications/Xcode_16.app # Swift 6.0
|
||||
- run: swift test
|
||||
working-directory: ./libs/swift/lume
|
||||
working-directory: ./libs/lume
|
||||
build:
|
||||
name: Release build
|
||||
runs-on: macos-15
|
||||
@@ -29,4 +29,4 @@ jobs:
|
||||
- run: uname -a
|
||||
- run: sudo xcode-select -s /Applications/Xcode_16.app # Swift 6.0
|
||||
- run: swift build --configuration release
|
||||
working-directory: ./libs/swift/lume
|
||||
working-directory: ./libs/lume
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
name: Publish @cua/computer to npm
|
||||
name: Publish @trycua/computer to npm
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'computer-v*'
|
||||
- "computer-v*"
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: lts/*
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: ./libs/typescript/computer
|
||||
@@ -1,9 +1,9 @@
|
||||
name: Publish @cua/core to npm
|
||||
name: Publish @trycua/core to npm
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'core-v*'
|
||||
- "core-v*"
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: lts/*
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: ./libs/typescript/core
|
||||
26
.github/workflows/publish-lume.yml
vendored
26
.github/workflows/publish-lume.yml
vendored
@@ -85,7 +85,7 @@ jobs:
|
||||
|
||||
# Update version in Main.swift
|
||||
echo "Updating version in Main.swift to $VERSION"
|
||||
sed -i '' "s/static let current: String = \".*\"/static let current: String = \"$VERSION\"/" libs/swift/lume/src/Main.swift
|
||||
sed -i '' "s/static let current: String = \".*\"/static let current: String = \"$VERSION\"/" libs/lume/src/Main.swift
|
||||
|
||||
# Set output for later steps
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
@@ -147,7 +147,7 @@ jobs:
|
||||
CERT_APPLICATION_NAME: "Developer ID Application: ${{ secrets.DEVELOPER_NAME }} (${{ secrets.TEAM_ID }})"
|
||||
CERT_INSTALLER_NAME: "Developer ID Installer: ${{ secrets.DEVELOPER_NAME }} (${{ secrets.TEAM_ID }})"
|
||||
VERSION: ${{ steps.set_version.outputs.version }}
|
||||
working-directory: ./libs/swift/lume
|
||||
working-directory: ./libs/lume
|
||||
run: |
|
||||
# Minimal debug information
|
||||
echo "Starting build process..."
|
||||
@@ -185,7 +185,7 @@ jobs:
|
||||
|
||||
- name: Generate SHA256 Checksums
|
||||
id: generate_checksums
|
||||
working-directory: ./libs/swift/lume/.release
|
||||
working-directory: ./libs/lume/.release
|
||||
run: |
|
||||
# Use existing checksums file if it exists, otherwise generate one
|
||||
if [ -f "checksums.txt" ]; then
|
||||
@@ -208,7 +208,7 @@ jobs:
|
||||
ls -la
|
||||
|
||||
- name: Create Standard Version Releases
|
||||
working-directory: ./libs/swift/lume/.release
|
||||
working-directory: ./libs/lume/.release
|
||||
run: |
|
||||
VERSION=${{ steps.set_version.outputs.version }}
|
||||
ARCH=$(uname -m)
|
||||
@@ -230,14 +230,14 @@ jobs:
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: lume-notarized-tarball
|
||||
path: ./libs/swift/lume/${{ steps.build_notarize.outputs.tarball_path }}
|
||||
path: ./libs/lume/${{ steps.build_notarize.outputs.tarball_path }}
|
||||
if-no-files-found: error
|
||||
|
||||
- name: Upload Notarized Package (Installer)
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: lume-notarized-installer
|
||||
path: ./libs/swift/lume/${{ steps.build_notarize.outputs.pkg_path }}
|
||||
path: ./libs/lume/${{ steps.build_notarize.outputs.pkg_path }}
|
||||
if-no-files-found: error
|
||||
|
||||
- name: Create Release
|
||||
@@ -245,18 +245,18 @@ jobs:
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: |
|
||||
./libs/swift/lume/${{ steps.build_notarize.outputs.tarball_path }}
|
||||
./libs/swift/lume/${{ steps.build_notarize.outputs.pkg_path }}
|
||||
./libs/swift/lume/.release/lume-darwin.tar.gz
|
||||
./libs/swift/lume/.release/lume-darwin.pkg.tar.gz
|
||||
./libs/swift/lume/.release/lume.tar.gz
|
||||
./libs/swift/lume/.release/lume.pkg.tar.gz
|
||||
./libs/lume/${{ steps.build_notarize.outputs.tarball_path }}
|
||||
./libs/lume/${{ steps.build_notarize.outputs.pkg_path }}
|
||||
./libs/lume/.release/lume-darwin.tar.gz
|
||||
./libs/lume/.release/lume-darwin.pkg.tar.gz
|
||||
./libs/lume/.release/lume.tar.gz
|
||||
./libs/lume/.release/lume.pkg.tar.gz
|
||||
body: |
|
||||
${{ steps.generate_checksums.outputs.checksums }}
|
||||
|
||||
### Installation with script
|
||||
|
||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/swift/lume/scripts/install.sh)"
|
||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/lume/scripts/install.sh)"
|
||||
```
|
||||
generate_release_notes: true
|
||||
make_latest: true
|
||||
|
||||
@@ -141,7 +141,7 @@ jobs:
|
||||
|
||||
publish:
|
||||
needs: prepare
|
||||
uses: ./.github/workflows/reusable-publish.yml
|
||||
uses: ./.github/workflows/pypi-reusable-publish.yml
|
||||
with:
|
||||
package_name: "agent"
|
||||
package_dir: "libs/python/agent"
|
||||
@@ -61,7 +61,7 @@ jobs:
|
||||
|
||||
publish:
|
||||
needs: prepare
|
||||
uses: ./.github/workflows/reusable-publish.yml
|
||||
uses: ./.github/workflows/pypi-reusable-publish.yml
|
||||
with:
|
||||
package_name: "computer-server"
|
||||
package_dir: "libs/python/computer-server"
|
||||
@@ -121,7 +121,7 @@ jobs:
|
||||
|
||||
publish:
|
||||
needs: prepare
|
||||
uses: ./.github/workflows/reusable-publish.yml
|
||||
uses: ./.github/workflows/pypi-reusable-publish.yml
|
||||
with:
|
||||
package_name: "computer"
|
||||
package_dir: "libs/python/computer"
|
||||
@@ -52,7 +52,7 @@ jobs:
|
||||
|
||||
publish:
|
||||
needs: prepare
|
||||
uses: ./.github/workflows/reusable-publish.yml
|
||||
uses: ./.github/workflows/pypi-reusable-publish.yml
|
||||
with:
|
||||
package_name: "core"
|
||||
package_dir: "libs/python/core"
|
||||
@@ -137,7 +137,7 @@ jobs:
|
||||
|
||||
publish:
|
||||
needs: prepare
|
||||
uses: ./.github/workflows/reusable-publish.yml
|
||||
uses: ./.github/workflows/pypi-reusable-publish.yml
|
||||
with:
|
||||
package_name: "mcp-server"
|
||||
package_dir: "libs/python/mcp-server"
|
||||
@@ -71,7 +71,7 @@ jobs:
|
||||
|
||||
publish:
|
||||
needs: determine-version
|
||||
uses: ./.github/workflows/reusable-publish.yml
|
||||
uses: ./.github/workflows/pypi-reusable-publish.yml
|
||||
with:
|
||||
package_name: "pylume"
|
||||
package_dir: "libs/python/pylume"
|
||||
@@ -56,7 +56,7 @@ jobs:
|
||||
|
||||
publish:
|
||||
needs: determine-version
|
||||
uses: ./.github/workflows/reusable-publish.yml
|
||||
uses: ./.github/workflows/pypi-reusable-publish.yml
|
||||
with:
|
||||
package_name: "som"
|
||||
package_dir: "libs/python/som"
|
||||
Reference in New Issue
Block a user