Skip to content

Commit

Permalink
Support ARM64 binary in docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
StLeoX committed Aug 18, 2024
1 parent c3e4029 commit 4b10a06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ jobs:
run: |
GOOS=windows GOARCH=amd64 make -C banyand banyand-server-static
GOOS=windows GOARCH=amd64 make -C bydbctl build
- name: Build OSX binaries
run: |
GOOS=darwin GOARCH=arm64 make -C banyand banyand-server-static
GOOS=darwin GOARCH=arm64 make -C bydbctl build
- name: Build docker image
if: github.ref != 'refs/heads/main' # Only build docker image on PR(Push image when pushed to main branch)
run: |
Expand Down
3 changes: 2 additions & 1 deletion docs/installation/binaries.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,5 @@ $ ls bydbctl/build/bin
bydbctl bydbctl--darwin-amd64 bydbctl--darwin-arm64 bydbctl--linux-386 bydbctl--linux-amd64 bydbctl--linux-arm64 bydbctl--windows-386 bydbctl--windows-amd64
```

> The build script now checks if the binary file exists before rebuilding. If you want to rebuild, please remove the binary file manually.
> 1. The build script now checks if the binary file exists before rebuilding. If you want to rebuild, please remove the binary file manually.
> 2. `make -C banyand release` will automatically match your OS and platform. If you run it on macOS, you will get the `banyand-server-static` binary for `darwin-arm64`.

0 comments on commit 4b10a06

Please sign in to comment.