Skip to content

Commit

Permalink
add linux arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
link1st committed Oct 13, 2023
1 parent 41dbb39 commit d476c45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ main_win.exe
go-stress-testing-mac
go-stress-testing-linux
go-stress-testing-win.exe
go-stress-testing-linux-arm64
model/modeltest/*
model/modeltest*
server.go
Expand Down
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ go build -ldflags "-s -w" -o go-stress-testing-mac main.go

# 使用交叉编译 linux和windows版本可以执行的文件
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o go-stress-testing-linux main.go
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "-s -w" -o go-stress-testing-linux-arm64 main.go
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o go-stress-testing-win.exe main.go

0 comments on commit d476c45

Please sign in to comment.