Skip to content

Commit

Permalink
Fix target build for linux amd64
Browse files Browse the repository at this point in the history
We currently focus only building against amd64 as it is the most common for server settings.
It also means we leverage the SIMD instructions.
  • Loading branch information
nuric committed May 27, 2024
1 parent 63678dc commit 5ca0341
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-binary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
# We can adjust which platforms we are targeting but we mainly expect
# linux/amd64 to be the default
goos: [linux]
goarch: [amd64, arm64]
goarch: [amd64] #, arm64]
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3

- name: Login to GitHub Packages
uses: docker/login-action@v3
Expand All @@ -55,7 +55,7 @@ jobs:
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
# platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

Expand Down
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
FROM golang:1.22.2-bookworm as build
LABEL org.opencontainers.image.description "No fuss multi-index hybrid vector database / search engine"

WORKDIR /app

COPY . .
Expand Down

0 comments on commit 5ca0341

Please sign in to comment.