File tree Expand file tree Collapse file tree 3 files changed +30
-20
lines changed Expand file tree Collapse file tree 3 files changed +30
-20
lines changed Original file line number Diff line number Diff line change 1+ name : Release Binary
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Setup go
13+ uses : actions/setup-go@v3
14+ with :
15+ go-version : ' ^1'
16+ - name : Checkout repository
17+ uses : actions/checkout@v3
18+ with :
19+ fetch-depth : 0
20+
21+ - name : Build binary
22+ run : |
23+ make build_linux_amd64
24+ make build_linux_arm64
25+ make build_linux_arm
26+
27+ - name : Check binary
28+ run : |
29+ ./release/linux/amd64/gorush --help
Original file line number Diff line number Diff line change 1- name : Run Tests
1+ name : Run Lint and Testing
22
33on :
44 push :
5- branches :
6- - master
7- pull_request :
8- branches :
9- - master
105
116jobs :
127 lint :
Original file line number Diff line number Diff line change @@ -62,20 +62,6 @@ build: $(EXECUTABLE)
6262$(EXECUTABLE ) : $(GOFILES )
6363 $(GO ) build -v -tags ' $(TAGS)' -ldflags ' $(EXTLDFLAGS)-s -w $(LDFLAGS)' -o release/$@
6464
65- .PHONY : misspell-check
66- misspell-check :
67- @hash misspell > /dev/null 2>&1 ; if [ $$ ? -ne 0 ]; then \
68- $(GO ) install github.com/client9/misspell/cmd/
[email protected] ; \ 69- fi
70- misspell -error $(GOFILES )
71-
72- .PHONY : misspell
73- misspell :
74- @hash misspell > /dev/null 2>&1 ; if [ $$ ? -ne 0 ]; then \
75- $(GO ) install github.com/client9/misspell/cmd/
[email protected] ; \ 76- fi
77- misspell -w $(GOFILES )
78-
7965.PHONY : test
8066test : init
8167 @$(GO ) test -v -cover -tags $(TAGS ) -coverprofile coverage.txt ./... && echo " \n==>\033[32m Ok\033[m\n" || exit 1
You can’t perform that action at this time.
0 commit comments