This commit is contained in:
zun.yang 2023-07-30 10:42:11 +08:00
parent 670fcd28c6
commit b8f7ebce0b
3 changed files with 50 additions and 2 deletions

17
.gitignore vendored Normal file
View File

@ -0,0 +1,17 @@
bin/
vendor
ssh-benchmark
---
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets
# Local History for Visual Studio Code
.history/
# Built Visual Studio Code Extensions
*.vsix

32
Taskfile.yaml Normal file
View File

@ -0,0 +1,32 @@
version: '3'
vars:
BASE_DIR:
sh: dirname $(pwd)
PROJECT_NAME:
sh: pwd|sed "s#{{.BASE_DIR}}/##g"
GOOS: ''
GOARCH: ''
tasks:
default:
cmds:
- task: deps
- task: build:binary
silent: true
deps:
desc: Install all dependencies (except dredd requirements)
cmds:
- task: deps:be
deps:be:
desc: application dependencies
cmds:
- go mod tidy
build:binary:
desc: Build a binary for the current architecture
platforms: [amd64]
cmds:
- env CGO_ENABLED=0 GOOS={{ .GOOS }} GOARCH={{ .GOARCH }} go build -o ./bin/{{.PROJECT_NAME}}{{ if eq OS "windows" }}.exe{{ end }}

View File

@ -4,5 +4,4 @@
"Username": "root",
"Password": "123456",
"Geekbench_License": "1934531619@qq.com JDN2X-DHS55-OAYJX-JNR32-BFQXZ-ASDRJ-QYANY-CC7NX-JV3QW"
"Password": "xxxx"
}