Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
149 changes: 11 additions & 138 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [blacksmith-4vcpu-ubuntu-2204, windows-latest, macos-latest]
os: [blacksmith-4vcpu-ubuntu-2204, blacksmith-4vcpu-ubuntu-2204-arm, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -52,29 +52,16 @@ jobs:
- name: Test Install Script (Linux)
if: matrix.os == 'blacksmith-4vcpu-ubuntu-2204'
run: |
chmod +x ./install.sh
# Test with default options (latest version)
./install.sh -d /tmp/agentuity-test
# Verify installation
/tmp/agentuity-test/agentuity --version

# Test with specific version if available - simplified to avoid potential issues
LATEST_VERSION=$(/tmp/agentuity-test/agentuity --version)
if [ -n "$LATEST_VERSION" ]; then
echo "Testing installation with specific version: $LATEST_VERSION"
./install.sh -d /tmp/agentuity-test-version -v $LATEST_VERSION
# Verify installation with specific version
INSTALLED_VERSION=$(/tmp/agentuity-test-version/agentuity --version)
echo "Installed version: $INSTALLED_VERSION"
echo "Expected version: $LATEST_VERSION"
if [ "$INSTALLED_VERSION" = "$LATEST_VERSION" ]; then
echo "Version verification successful"
else
echo "Version verification failed"
exit 1
fi
fi
shell: bash
chmod +x ./install_test/docker-test-install.sh
./install_test/docker-test-install.sh
shell: sh

- name: Test Install Script (Linux ARM)
if: matrix.os == 'blacksmith-4vcpu-ubuntu-2204-arm'
run: |
chmod +x ./install_test/docker-test-install.sh
./install_test/docker-test-install.sh
shell: sh

- name: Test Install Script (macOS)
if: matrix.os == 'macos-latest'
Expand All @@ -94,117 +81,3 @@ jobs:
echo "macOS double installation test passed - segfault fix verified"
shell: bash

- name: Test Bash Install Script (Windows)
if: matrix.os == 'windows-latest'
run: |
# Windows test - simplified to avoid bash usage
Write-Host "Testing bash install script on Windows..."

# Set up environment for testing
$env:NONINTERACTIVE = "true"
$env:OS = "Windows"
$env:ARCH = "x86_64"

# Make script executable using PowerShell
if (Test-Path "install.sh") {
Write-Host "Found install.sh script"
} else {
Write-Host "install.sh not found"
exit 1
}

# Test with default options (latest version)
Write-Host "Testing install script with default options..."
& sh -c "./install.sh -d '$env:TEMP/agentuity-test-download'"

# Verify MSI was downloaded
if (Test-Path "$env:USERPROFILE/agentuity-x64.msi") {
Write-Host "MSI download verification successful"

# Test with specific version
Write-Host "Testing install script with specific version..."
& sh -c "./install.sh -d '$env:TEMP/agentuity-test-version-download' -v 0.0.74"

# Verify version-specific MSI was downloaded
if (Test-Path "$env:USERPROFILE/agentuity-x64.msi") {
Write-Host "Version-specific MSI download verification successful"
} else {
Write-Host "Version-specific MSI download verification failed"
exit 1
}
} else {
Write-Host "MSI download verification failed"
exit 1
}
shell: pwsh

- name: Test PowerShell Install Script (Windows)
if: matrix.os == 'windows-latest'
env:
GITHUB_TOKEN: ${{ github.token }}
CI: true
AGENTUITY_TEST_VERSION: "0.0.74"
run: |
Write-Host "Testing PowerShell install script on Windows..."

# Verify the PowerShell script exists
if (Test-Path "install.ps1") {
Write-Host "Found install.ps1 script"
} else {
Write-Host "install.ps1 not found"
exit 1
}

# Create test directory
$testDir = Join-Path $env:TEMP "agentuity-ps-test"
if (Test-Path $testDir) {
Remove-Item -Path $testDir -Recurse -Force
}
New-Item -Path $testDir -ItemType Directory -Force | Out-Null

# Test with default options but NoPrompt
Write-Host "Testing PowerShell install script with default options..."
& powershell -ExecutionPolicy Bypass -File .\install.ps1 -InstallDir $testDir -NoPrompt

# Verify installation
$exePath = Join-Path -Path $testDir -ChildPath "agentuity.exe"
if (Test-Path $exePath) {
Write-Host "Installation verification successful"

# Get installed version
$installedVersion = & $exePath version
Write-Host "Installed version: $installedVersion"

# Test with specific version from environment variable
$specificVersion = $env:AGENTUITY_TEST_VERSION
Write-Host "Testing PowerShell install script with specific version $specificVersion..."
$versionTestDir = Join-Path $env:TEMP "agentuity-ps-test-version"
if (Test-Path $versionTestDir) {
Remove-Item -Path $versionTestDir -Recurse -Force
}
New-Item -Path $versionTestDir -ItemType Directory -Force | Out-Null

& powershell -ExecutionPolicy Bypass -File .\install.ps1 -Version $specificVersion -InstallDir $versionTestDir -NoPrompt

# Verify version-specific installation
$versionExePath = Join-Path -Path $versionTestDir -ChildPath "agentuity.exe"
if (Test-Path $versionExePath) {
Write-Host "Version-specific installation verification successful"
$versionInstalledVersion = & $versionExePath version
Write-Host "Version-specific installed version: $versionInstalledVersion"

if ($versionInstalledVersion -match $specificVersion) {
Write-Host "Version verification successful"
} else {
Write-Host "Version verification failed. Expected: $specificVersion, Got: $versionInstalledVersion"
exit 1
}
} else {
Write-Host "Version-specific installation verification failed"
exit 1
}
} else {
Write-Host "Installation verification failed"
exit 1
}
shell: pwsh
2 changes: 1 addition & 1 deletion .github/workflows/upgrade-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [blacksmith-4vcpu-ubuntu-2204, macos-latest, windows-latest]
os: [blacksmith-4vcpu-ubuntu-2204, blacksmith-4vcpu-ubuntu-2204-arm, macos-latest, windows-latest]

steps:
- name: Checkout code
Expand Down
10 changes: 0 additions & 10 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,3 @@ brews:
alternative_names:
- "agentuity@{{ .Version }}"

msi:
- id: agentuity
name: "agentuity-{{.MsiArch}}"
wxs: ./installer.wsx
ids:
- agentuity
goamd64: v1
replace: true
mod_timestamp: "{{ .CommitTimestamp }}"
version: v3
16 changes: 14 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: build fmt generate
.PHONY: build fmt generate test_install_linux test_install_alpine

build: fmt generate
@go build -o agentuity
Expand All @@ -8,4 +8,16 @@ fmt:

generate:
@echo "Running go generate..."
@go generate ./...
@go generate ./...

test_install_linux:
@docker build -t agentuity-test-install-linux -f install_test/Dockerfile-Ubuntu .
@docker run -it agentuity-test-install-linux

test_install_alpine:
@docker build -t agentuity-test-install-alpine -f install_test/Dockerfile-Alpine .
@docker run -it agentuity-test-install-alpine

test_install_debian:
@docker build -t agentuity-test-install-debian -f install_test/Dockerfile-Debian .
@docker run -it agentuity-test-install-debian
Comment thread
pec1985 marked this conversation as resolved.
21 changes: 13 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,33 @@ The command line tools for the Agentuity Agent Cloud Platform. These tools are

## Installation

You can install the CLI using the install script:
You can install the CLI using the install script (Linux, macOS, or WSL):

```bash
curl -fsSL https://agentuity.sh/install.sh | bash
curl -fsSL https://agentuity.sh/install.sh | sh
```

If you are on a Mac, you can install the CLI using Homebrew:
If you are on a Mac, you can install the CLI using Homebrew (by default, the install script will use Homebrew if it is installed and not disabled):

```bash
brew install agentuity/tap/agentuity
brew install agentuity/tap/agentuity
```

Note: The install script will automatically use Homebrew if it is available.

For Windows, you can install the CLI using the install script:
You can force the install script to use the direct binary install (not Homebrew) with:

```bash
irm https://agentuity.sh/install.ps1 | iex
curl -fsSL https://agentuity.sh/install.sh | sh -s -- --no-brew
```

**Windows:** Native Windows installation is no longer supported. Please use [Windows Subsystem for Linux (WSL)](https://learn.microsoft.com/en-us/windows/wsl/) and run the install script from your WSL terminal.

For other platforms, please download the binary from the [Releases](https://github.com/agentuity/cli/releases) page.

**Supported platforms:**
- Linux
- macOS
- Windows (via WSL only)

## Upgrade

If you have already installed the CLI, you can upgrade to the latest version using the upgrade command:
Expand Down
Loading
Loading