Skip to content

Commit

Permalink
重构 - 修复自动化
Browse files Browse the repository at this point in the history
  • Loading branch information
lvyahui8 committed Nov 2, 2024
1 parent e20c0ab commit 22549a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: go install github.com/jstemmer/go-junit-report/v2@latest

- name: Clean
run: rm -f elly_agent/meta/*.dat && rm -fr example/target && rm -fr example/ellyn_common && rm -fr example/ellyn_agent
run: rm -f sdk/meta/*.dat && rm -fr example/target && rm -fr example/ellyn_agent

- name: Build
run: go build -v ./...
Expand Down
4 changes: 2 additions & 2 deletions benchmark/benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ if ! [ -x "$(command -v benchstat)" ]; then
fi


cd "$SCRIPT_DIR/.." && go test -v -run TestRollbackBenchmark ./ellyn_ast/
cd "$SCRIPT_DIR/.." && go test -v -run TestRollbackBenchmark ./instr/

cd "$SCRIPT_DIR/" && go test -v -run ^$ -bench=. -benchmem -benchtime=5x . > old.out

cd "$SCRIPT_DIR/.." && go test -v -run TestUpdateBenchmark ./ellyn_ast/
cd "$SCRIPT_DIR/.." && go test -v -run TestUpdateBenchmark ./instr/

cd "$SCRIPT_DIR/" && go test -v -run ^$ -bench=. -benchmem -benchtime=5x . > new.out

Expand Down
2 changes: 1 addition & 1 deletion sdk/common/utils/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type fileUtils struct {

func (fileUtils) GetProjectRootPath() string {
_, b, _, _ := runtime.Caller(0)
return path.Dir(path.Dir(path.Dir(b)))
return path.Dir(path.Dir(path.Dir(path.Dir(b))))
}

func (fileUtils) GetSimpleFileName(file string) {
Expand Down

0 comments on commit 22549a7

Please sign in to comment.