fix(coding-agent): move sharp to optional dependencies for arm64 support
This commit is contained in:
@@ -64,10 +64,18 @@ jobs:
|
||||
- run: bun install --frozen-lockfile
|
||||
- name: Install cross-platform native bindings
|
||||
run: |
|
||||
bun install --os darwin --cpu arm64
|
||||
bun install --os darwin --cpu x64
|
||||
bun install --os linux --cpu arm64
|
||||
bun install --os win32 --cpu x64
|
||||
# bun install only fetches optional deps for current platform (linux-x64)
|
||||
# Explicitly install all platform binaries for bun cross-compilation
|
||||
bun add --no-save \
|
||||
@img/sharp-darwin-arm64@0.34.5 \
|
||||
@img/sharp-darwin-x64@0.34.5 \
|
||||
@img/sharp-linux-x64@0.34.5 \
|
||||
@img/sharp-linux-arm64@0.34.5 \
|
||||
@img/sharp-win32-x64@0.34.5 \
|
||||
@img/sharp-libvips-darwin-arm64@1.2.4 \
|
||||
@img/sharp-libvips-darwin-x64@1.2.4 \
|
||||
@img/sharp-libvips-linux-x64@1.2.4 \
|
||||
@img/sharp-libvips-linux-arm64@1.2.4
|
||||
- name: Build binaries
|
||||
run: |
|
||||
cd packages/coding-agent
|
||||
|
||||
Reference in New Issue
Block a user