diff --git a/.gitignore b/.gitignore index 7c6337f..4d122d3 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/build.sh b/build.sh index 3bc98ca..54b5422 100755 --- a/build.sh +++ b/build.sh @@ -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