Skip to content

Commit

Permalink
chore: 增加支持 linux arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
v03413 committed Jul 4, 2024
1 parent eb057e9 commit f1a1067
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
goos: [ linux ]
goarch: [ amd64 ]
goarch: [ amd64,arm64 ]
fail-fast: false
runs-on: ubuntu-latest
env:
Expand All @@ -40,9 +40,8 @@ jobs:
run: go mod download
- name: Build Bepusdt
run: |
CGO_ENABLED=1
mkdir -p ${{ env.BUILD_DIR }}
go build -v -o ${{ env.BUILD_DIR }}/${{ env.APP_NAME }} -trimpath -ldflags "-linkmode external -extldflags -static -s -w -buildid=" ./main
go build -v -o ${{ env.BUILD_DIR }}/${{ env.APP_NAME }} -trimpath -ldflags "-s -w -buildid=" ./main
- name: Prepare package
run: |
cp -v -R ./templates ./${{ env.BUILD_DIR }}
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV GO111MODULE=on
WORKDIR /go/release
ADD . .
RUN set -x \
&& CGO_ENABLED=1 go build -trimpath -ldflags="-linkmode external -extldflags -static -s -w -buildid=" -o bepusdt ./main
&& go build -trimpath -ldflags="-s -w -buildid=" -o bepusdt ./main

FROM debian:latest

Expand Down
2 changes: 1 addition & 1 deletion main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

// Version 版本号说明 1.0.0 代表主版本号.功能版本号.修订号
const Version = "1.9.25"
const Version = "1.9.26"

func main() {
if err := model.Init(); err != nil {
Expand Down

0 comments on commit f1a1067

Please sign in to comment.