Remove arm64 build, simplify for x86_64 only
This commit is contained in:
25
.github/workflows/build-opencode-cli-docker.yml
vendored
25
.github/workflows/build-opencode-cli-docker.yml
vendored
@@ -35,9 +35,6 @@ jobs:
|
||||
- arch: amd64
|
||||
runner: ubuntu-24.04
|
||||
cli_dir: opencode-linux-x64
|
||||
- arch: arm64
|
||||
runner: ubuntu-24.04-arm64
|
||||
cli_dir: opencode-linux-arm64
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@@ -51,21 +48,6 @@ jobs:
|
||||
run: bun install
|
||||
working-directory: opencode
|
||||
|
||||
- name: Debug - Check directory structure
|
||||
run: |
|
||||
pwd
|
||||
ls -la
|
||||
ls -la packages/opencode/
|
||||
working-directory: opencode
|
||||
|
||||
- name: Debug - Test bun script execution
|
||||
run: |
|
||||
echo "Testing bun..."
|
||||
bun --version
|
||||
echo "Testing script import..."
|
||||
bun run -e "try { const { Script } = await import('@opencode-ai/script'); console.log('Script imported:', Script.version); } catch(e) { console.error('Import failed:', e); process.exit(1); }"
|
||||
working-directory: opencode
|
||||
|
||||
- name: Build CLI
|
||||
run: bun run ./packages/opencode/script/build.ts --single
|
||||
working-directory: opencode
|
||||
@@ -94,9 +76,6 @@ jobs:
|
||||
path: opencode/packages/opencode/dist
|
||||
merge-multiple: true
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
@@ -120,11 +99,11 @@ jobs:
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build image (multi-arch push)
|
||||
- name: Build image (amd64 push)
|
||||
if: ${{ env.PUSH_IMAGE == 'true' }}
|
||||
run: |
|
||||
docker buildx build \
|
||||
--platform linux/amd64,linux/arm64 \
|
||||
--platform linux/amd64 \
|
||||
--cache-from type=local,src=/tmp/.buildx-cache \
|
||||
--cache-to type=local,dest=/tmp/.buildx-cache-new,mode=max \
|
||||
-t "$IMAGE_NAME" \
|
||||
|
||||
Reference in New Issue
Block a user