Remove arm64 build, simplify for x86_64 only

This commit is contained in:
southseact-3d
2026-02-10 12:20:08 +00:00
parent 1e91ca948a
commit 1f94c63384

View File

@@ -35,9 +35,6 @@ jobs:
- arch: amd64 - arch: amd64
runner: ubuntu-24.04 runner: ubuntu-24.04
cli_dir: opencode-linux-x64 cli_dir: opencode-linux-x64
- arch: arm64
runner: ubuntu-24.04-arm64
cli_dir: opencode-linux-arm64
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -51,21 +48,6 @@ jobs:
run: bun install run: bun install
working-directory: opencode 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 - name: Build CLI
run: bun run ./packages/opencode/script/build.ts --single run: bun run ./packages/opencode/script/build.ts --single
working-directory: opencode working-directory: opencode
@@ -94,9 +76,6 @@ jobs:
path: opencode/packages/opencode/dist path: opencode/packages/opencode/dist
merge-multiple: true merge-multiple: true
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
with: with:
@@ -120,11 +99,11 @@ jobs:
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image (multi-arch push) - name: Build image (amd64 push)
if: ${{ env.PUSH_IMAGE == 'true' }} if: ${{ env.PUSH_IMAGE == 'true' }}
run: | run: |
docker buildx build \ docker buildx build \
--platform linux/amd64,linux/arm64 \ --platform linux/amd64 \
--cache-from type=local,src=/tmp/.buildx-cache \ --cache-from type=local,src=/tmp/.buildx-cache \
--cache-to type=local,dest=/tmp/.buildx-cache-new,mode=max \ --cache-to type=local,dest=/tmp/.buildx-cache-new,mode=max \
-t "$IMAGE_NAME" \ -t "$IMAGE_NAME" \