Skip to content

Commit 190105e

Browse files
committed
fix: Use rustls instead of aws-lc for Windows compatibility
- Switch AWS SDK to use rustls TLS backend instead of aws-lc - aws-lc-sys has path length issues on Windows with deep directories - Use shorter CARGO_TARGET_DIR (D:\t) to avoid path length limits - Disable incremental compilation to reduce build complexity
1 parent 04263a3 commit 190105e

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/build-local-agent.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,14 @@ jobs:
134134
if: matrix.win
135135
working-directory: lambda/tools/local-agent
136136
shell: pwsh
137-
run: npm run tauri build -- --target ${{ matrix.target }}
137+
run: |
138+
# Use shorter path to avoid Windows path length issues
139+
$env:CARGO_TARGET_DIR = "D:\t"
140+
npm run tauri build -- --target ${{ matrix.target }}
138141
env:
139142
TAURI_SIGNING_PRIVATE_KEY: ""
140143
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ""
144+
CARGO_INCREMENTAL: "0"
141145

142146
# Build Tauri GUI app - Unix
143147
- name: Build Tauri GUI (Unix)
@@ -157,8 +161,8 @@ jobs:
157161
New-Item -ItemType Directory -Force release | Out-Null
158162
# Copy standalone executor
159163
Copy-Item "lambda/tools/local-agent/rust-executor-standalone/target/${{ matrix.target }}/release/${{ matrix.binary_name }}" "release/${{ matrix.asset_name }}"
160-
# Copy Tauri GUI app
161-
Copy-Item "lambda/tools/local-agent/src-tauri/target/${{ matrix.target }}/release/local-agent-gui.exe" "release/local-agent-gui.exe"
164+
# Copy Tauri GUI app (from shortened path on Windows)
165+
Copy-Item "D:\t\${{ matrix.target }}\release\local-agent-gui.exe" "release\local-agent-gui.exe"
162166
# Copy Python files
163167
Copy-Item "lambda/tools/local-agent/script_executor.py" release/
164168
Copy-Item "lambda/tools/local-agent/pyproject.toml" release/

lambda/tools/local-agent/src-tauri/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ serde_json = "1.0"
2020
serde = { version = "1.0", features = ["derive"] }
2121
tauri = { version = "1.8.3", features = ["shell-open", "dialog-all", "fs-all"] }
2222

23-
# AWS SDK
24-
aws-config = "1.5.17"
25-
aws-sdk-sfn = "1.64.0"
23+
# AWS SDK - disable default features to avoid aws-lc on Windows
24+
aws-config = { version = "1.5.17", default-features = false, features = ["rt-tokio", "rustls"] }
25+
aws-sdk-sfn = { version = "1.64.0", default-features = false, features = ["rt-tokio", "rustls"] }
2626

2727
# Async runtime
2828
tokio = { version = "1.28.0", features = ["full"] }

0 commit comments

Comments
 (0)