Skip to content

Commit 7101fbd

Browse files
committed
chore(CI): add binary build step in GitHub Actions
#704 Signed-off-by: Bo-Yi.Wu <[email protected]>
1 parent 951f698 commit 7101fbd

File tree

3 files changed

+30
-20
lines changed

3 files changed

+30
-20
lines changed

.github/workflows/build.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

.github/workflows/go.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
name: Run Tests
1+
name: Run Lint and Testing
22

33
on:
44
push:
5-
branches:
6-
- master
7-
pull_request:
8-
branches:
9-
- master
105

116
jobs:
127
lint:

Makefile

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff 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
8066
test: init
8167
@$(GO) test -v -cover -tags $(TAGS) -coverprofile coverage.txt ./... && echo "\n==>\033[32m Ok\033[m\n" || exit 1

0 commit comments

Comments
 (0)