Skip to content

Commit 66c185f

Browse files
okhowangweijunyi
authored andcommitted
ci: add ci for different platforms
1 parent baadd09 commit 66c185f

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

.github/workflows/master.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,27 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v2
9-
- name: Build
10-
run: go build ./...
9+
- name: Run golangci-lint
10+
uses: golangci/golangci-lint-action@v6
11+
test:
12+
strategy:
13+
matrix:
14+
goarch: [ amd64, 386 ]
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
1118
- name: Run Tests
1219
run: go test ./...
13-
- name: Run golangci-lint
14-
uses: golangci/golangci-lint-action@v2.5.2
15-
20+
env:
21+
GOARCH: ${{ matrix.goarch }}
22+
build:
23+
strategy:
24+
matrix:
25+
goarch: [ amd64, 386, arm64, arm ]
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v2
29+
- name: Build
30+
run: go build ./...
31+
env:
32+
GOARCH: ${{ matrix.goarch }}

0 commit comments

Comments
 (0)